how to combine a GUI timer with battleship game

6 vues (au cours des 30 derniers jours)
elor cohen
elor cohen le 15 Juin 2019
hi everyone , so i have a .m file that is a battleship game that works fine , and i need to add to this game a timer.
ive successed to create a timer with gui , but the big problem is that i dont know how to combine them ,
i dont know what should i do maybe add an axes option in the GUI and try to plot the game into it
really need your help thx.
  5 commentaires
elor cohen
elor cohen le 15 Juin 2019
I need to appropiate time for each game , like i determine a 2 minute game and a countdown clock is displayed while the game is running
Walter Roberson
Walter Roberson le 15 Juin 2019
https://www.mathworks.com/matlabcentral/fileexchange/12628-stopwatch shows an example of building a clock based upon a timer object. timer objects execute asynchronously, so you can have that running at the same time the GUI is operating.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 17 Juin 2019
FYI, the MATLAB Facebook page has an item on Battleship:

Catégories

En savoir plus sur Number games dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by