C++ Tic-Tac-Toe App
Aims for Tic-Tac-Toe:
The primary aim of the project is to put into practice some of the C++ I am relearning along with that which I can recall from the dark, distant past, and with some influence from a Python version I built a while ago.
Outline:
- Simple console app, using the python Tic-Tac-Toe I built in the Python training course in 2020-21.
- Against the computer. A random function determines who has first move as X.
- Prompts the challenger for name to make it sound a little more friendly.
- Computer move randomly picks one of the remaining free cells.
- At the end of the game, we ask the challenger if they would like another game.
So, What did I learn?
- As well as refreshing some C++ I was able learn a little about the newer features of the C++ language.
- This was also an opportunity to learn a little about the build process of the app using both CMake and Ninja.
- With CMake I learned a little about the configuration of cross-platform building of applications.
- With Ninja I also learned about the part that the Generator plays in the build process.
- I want to learn more about the use of CMake within the GitHub CI/CD pipleline.
GitHub Repo:
The source code, along with the documentation for setup, build, etc. can be found in my GitHub.
As always, happy to hear your thoughts…
Modified By: Martin Thompson
Last Modified: September 4, 2024-11:30:00
This post is licensed under CC BY 4.0 by the author.