A simple 2-player noughts and crosses game I made using the basics I've learnt previously at gamejams and tutorials. I wanted to make a game that tested my logic skills and had a chill vibe to it! The program maps the pixels of the player's mouse click to a certain value in a 2D array, indicating which cell in the grid a symbol has to appear. Using a series of if statements and arithmetic, it calculates when there is more than 3 symbols in a row, after which it declares a winner! I hope you like it :)
A simple 2-player noughts and crosses game I made using the basics I've learnt previously at gamejams and tutorials. I wanted to make a game that tested my logic skills and had a chill vibe to it! The program maps the pixels of the player's mouse click to a certain value in a 2D array, indicating which cell in the grid a symbol has to appear. Using a series of if statements and arithmetic, it calculates when there is more than 3 symbols in a row, after which it declares a winner! I hope you like it :)