Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
help with oop and tictactoe
I am looking for an example of a two-player tic tac toe program that can vary in board size and asks the user how big the board should be (for example, somewhere between 3 and 15; the number must be odd because diagonal paths have to be able to work out since all the original rules of tic tac toe apply).
The program should
- ask for each player to make a move
- update and displays the board after each move
- evaluate the board to see if someone has won or has drawn the game
- exit the program after the game is over
I've never programmed in Pascal before.
Would it be easier to write this sort of program in Pascal with or without an object-oriented design?
Does anyone have examples to show me which would be very similar to what I'm asking for? For example, maybe a varied l
0 · ·