TicTacToe (using MATLAB)
HTML-код
- Опубликовано: 3 май 2015
- The project was done as a part of Lab course.
Target:
Develop a game of tic-tac-toe using MATLAB Graphical User Interface. The game should have single player and double player option.
Planning:
1. A GUI (graphical user interface) allows users to perform tasks interactively through controls such as buttons and sliders.
2. GUI can be programmed in two ways: Interactively or Programmatically.
3. For our code, we are following the interactive approach. We will not be using GUIDE, rather we will write direct code to formulate figure, dialog box, buttons. This gives us more control over the code.
4. For Single player option, we had to build a basic AI, that means,we needed to write a code that contains a certain amount of intelligence, as players have to play against the computer, or to be specific, the code.
5. For Double player option, no intelligence is needed. Everything will be controlled by players.
6. We have added two more options; Credits and Exit.
Extra Part:
1. For fun, we have added a cheat code.
2. If you enter name "rajinikanth" as player name, it will always make you win the game.
3. If both players want the same name "rajinikanth", they can't have it, as "two rajinikanth can't exist in one universe." ( :P )
Thanks for watching. Regards,
Riddhiman Adib
0906027,
Dept. of EEE,
BUET
can i get code for this?
Can I get a program code?
PLEASE SHARE CODE FOR THIS GAME
You can have a look at the GitHub link I posted a comment above.