How mrzetyt/tic-tac-toe works
This is a console Tic-Tac-Toe game: a user chooses whether to play, configures board size and symbols, enters alternating moves, and receives a win or draw result. Game owns the menu, input, rendering, and turn loop; Player applies a symbol to an empty cell, while Field stores the board and checks winning lines. The interfaces are a small internal contract layer. The README gives no further capabilities, and the graph reflects the sampled runtime source.
Main entry points: Game.cs Game flow · Field.cs Board state · Player.cs Player moves · IField.cs Field contract
Components 6
Console interaction
- Game flow
Lab1PPOIS/Game.cs
Game logic
- Board state
Lab1PPOIS/Field.cs - Player moves
Lab1PPOIS/Player.cs
Contracts
- Field contract
Lab1PPOIS/IField.cs - Player contract
Lab1PPOIS/IPlayer.cs
Other components
- Player
Connections 7
- Player → Game flow: enters choices
Lab1PPOIS/Game.cs - Game flow → Board state: creates and renders
Lab1PPOIS/Game.cs - Game flow → Player moves: assigns symbols; invokes moves
Lab1PPOIS/Game.cs - Game flow → Board state: checks winner
Lab1PPOIS/Game.cs - Player moves → Board state: checks and marks cell
Lab1PPOIS/Player.cs - Board state → Field contract: implements
Lab1PPOIS/Field.cs - Player moves → Player contract: implements
Lab1PPOIS/Player.cs