Community Profile

photo

James Webber


Last seen: 4 mesi ago Active since 2021

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


while loop inside a while loop
i have one big while loop which loops all of my code and i have a small section within my code which is also in a while loop but...

5 mesi ago | 1 answer | 0

1

answer

Question


returning to the start of the game
i am writting the code for battleships and there is a section that if yuo answer no then it should take you back to the begingin...

5 mesi ago | 1 answer | 0

1

answer

Question


terminating a game of battleship
i am writting the gaem battleship and i was wondering how to write a section of code so that if you type the word 'quit' in the ...

5 mesi ago | 0 answers | 0

0

answers

Question


return to start of code
i have code like this case 2 s=input ('would you like to see the game stastics 1,yes 2,no:') ...

5 mesi ago | 0 answers | 0

0

answers

Question


showing game scores for the game battleship wins and losses
i am writting the code for the game battleship and i want to be able to save the results of the gaem and in a diffretn case to s...

5 mesi ago | 1 answer | 0

1

answer

Question


exit program whilst code is running
i am programming a game and i want to be able to turn the game off whilst it is playing, like half way through i want to be able...

5 mesi ago | 0 answers | 0

0

answers

Question


placing spots on graph
% Demo by Image Analyst, December, 2021. clc; % Clear the command window. close all; % Close all figures (except those of ...

5 mesi ago | 0 answers | 0

0

answers

Question


random selection for .csvfile
i have 4 .csvfiles imported into my code like this Choice1= readtable ('computerchoice1.csv'); Choice2= readtable ('c...

5 mesi ago | 1 answer | 0

1

answer

Question


join .m files together
i have 2 .m files one called battleship.m (main code) and the other battleship board.m how do i show battleship board.m when i ...

5 mesi ago | 1 answer | 0

1

answer

Question


the game battle ship ship location
hi i am trying to code the game battleships, how do i write the code for 2 players to chose the location of their ships? the...

5 mesi ago | 1 answer | 0

1

answer

Question


hi I have multiple .csv files and I want to randomly choice 1 to run how do I right the code to only choice on of them?
i am writing a code for the game battle ships and i need to be able to import multiple .csvfiles for the computer to run from bu...

5 mesi ago | 1 answer | 0

1

answer