Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

SemKirkels/Tic_Tac_Toe_CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

The assignment

This game is written in C++ as an assignment for the C++ course. The requirements the assignment has to meet are in the Checklist.md file.

Build manual

The game can be run via a Docker container or on a local machine. The exact instructions for installation can be found in the BuildManual.md file.

How does the game work

  1. When the game starts it wil ask for the game mode. Please enter the corresponding number and press enter to confirm.

Startscreen
Figure 1: Startscreen

  1. After that it will ask each player to enter their name.

Name screen
Figure 2: Enter names

  1. Than the program will randomly choose wich player may start selecting their symbol. This can either be 'x' or 'o' but must be lower case. The other player will receive the remaining symbol.

Name screen
Figure 3: Enter names

  1. Finally the program will select a random player to start. Players can then take turns choosing a square to place the symbol on the field. When a player has won, this will be stated in the terminal and the game will end. A draw will end the game and state "draw" in the terminal.

Game screen
Figure 4: Game screen

Errors in the game

The game will end when invalid userinput is given. This can be a wrong number or letter. The programme can be restarted when this has occurred.

About

Programming Tic Tac Toe in C++

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages