Skip to content

IgnacBrychta/TicTacToe

Repository files navigation

Tic Tac Toe

Tic Tac Toe Main Window This is a simple implementation of the Tic Tac Toe game in C# using Windows Forms. The game features a resizable interface, and it was developed for a specific display size (10" 2560 px × 1600 px). Please note that the appearance might not be optimal on other screen sizes.

Table of Contents

Features

  • Resizable Interface: The game is designed to work on a specific display size, but it can be resized to fit different screens.
  • Crosses and Circles: Players take turns placing crosses (X) and circles (O) on the game board.
  • Winning Conditions: The game checks for winning conditions horizontally, vertically, and diagonally.
  • Score Tracking: Scores for crosses and circles are tracked, and the winner is celebrated with a message.

Screenshots

Include screenshots or images of the game interface here.

Getting Started

  1. Clone the repository.

    git clone https://github.com/your-username/tic-tac-toe.git
  2. Open the project in Visual Studio or your preferred C# development environment.

  3. Build and run the application.

    Or you can just download the release version.

Usage

  • Resizing the Interface: If the program detects a screen size different from the original (10" 2560 px × 1600 px), a warning will be shown. You can resize the interface or proceed with the warning.

  • Playing the Game: Click on the cells to place crosses or circles. The game checks for winning conditions after each move.

  • Erasing Moves: There is an option to erase moves if the eraser tool is selected.

  • Restarting the Game: Use the restart button to reset the game.

Contributing

  • If you'd like to contribute to the development of this Tic Tac Toe game, please follow these steps:

    1. Fork the repository.
    2. Create a new branch for your feature or bug fix.
    3. Make your changes and submit a pull request.

License

This project is licensed under the MIT License. Feel free to copy and paste this Markdown code into your GitHub repository's README.md file and make any necessary adjustments.