Introduction
This exam is designed to test your knowledge in C# by creating a simple Tic Tac Toe game. If you pass this test, you can be sure to be eligible to take the XR Foundations Bootcamp (make sure you’ve carefully read the curriculum before applying).
Make sure to have installed the following Unity Version: 2019.4.33f1 before starting
You can find it here on the unity Download archive
Project Files
This is a unity project, for version 2019.4.33 or later:
FoundationsEligibility.zip
Your objective
To program a computer player (an “AI”) that is smarter than the provided example. It should read the board and adapt to the player’s movements. The AI should actively block the real player from winning instantly.
Some of the additional features you’ll have to program are:
- Come up with a way to represent the Tic tac toe algorithm in code.
- Make sure turns are passed between the AI and the real player.
- Make sure no piece can be put on top of another piece.
- Check for a win-lose or tie condition, and display that accordingly.
- Make sure to add Your Full Name, and Date in the comments on top of the file TicTacToeAI.cs
Extra considerations (For all exams submitted after July 12, 2024)
- By “AI”, we mean code that will control where the next position of the grid will be taken. No need to implement more “advanced” forms of AI.
- We would like to validate your ability to read and adapt existing code. Thus, we ask you to base your project based on the provided files. You can modify them at will, but sharing a project from scratch will disqualify you.
- The implementation of the min-max algorithm is not allowed. We want to see your ability to come up with an algorithm. It does not have to be perfect, just made by you. Using the Min Max algorithm counts as an instant failure, and you will have to resubmit to be considered.