Skip to content

Basic TicTacToe written in C#. One player, two player, and one player IMPOSSIBLE mode.

Notifications You must be signed in to change notification settings

trdecker/ImpossibleTicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Basic Tic Tac Toe written in C# using Visual Studio. One player, two player, and one player IMPOSSIBLE mode. Normal one player mode has "X"s placed randomly, except in the case of a potential win or loss, wherein an "X" is placed to ensure (or discourage) a victory. However, there remains a %70 chance the computer will make a "mistake" and place an "X" elsewhere, thereby delaying its own victory or providing the player an opportunity to win. Impossible mode uses strategy to allow the computer to win every time, or else force a "CAT" instead.

This project was an opportunity to familiarize myself with Visual Studio and C# in general. Adapting to the language was tricky at first, but I got the hang of it. Understanding Visual Studio was difficult, but I also felt comfortable with it by the end.

Hopefully this is a fun game to shoot some time into. And unless there's a bug, there's no way you're winning impossible mode, sorry.

Me running through the code

Development Environment

I used Visual Studio 2017 and C#.

Useful Websites

Most helpful in this project were a few youtube videos on the strategy to winning Tic Tac Toe and good old ChatGPT.

Future Work

I like the idea of a modifiable Tic Tac Toe board. It'd be interesting to be able enter in the parameters "height", "width", and "number in a row to win", and see if it could handle the changes. It'd probably break the game, but it'd be fun.

  • Utils.cs file, or an equivalent of it.
  • Graphics, moving stuff!
  • Allow player to decide to go first

About

Basic TicTacToe written in C#. One player, two player, and one player IMPOSSIBLE mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages