Giter Club home page Giter Club logo

tic-tac-toe-windowsxp's Introduction

Tic-Tac-Toe-WindowsXP

A Windows XP Era Inspired Tic-Tac-Toe Game. Implemented in Python using Tkinter, Travel Back to 2004!

INSERT PICTURE HERE

๐Ÿ“Ž It looks like you're being nostalgic! Would you like help?

๐Ÿ–ฅ๏ธ Windows XP was the first exposure to a computer I ever got to experience.

  • At the young age of 3, I spent untold hours playing games on the computer at my grandma's house.
  • It was in these simple inbuilt games and internet explorer that I became interested in technology.

๐Ÿ” This Project's goal was to create a game I could have played as a child, while also helping devolp my skills as a coder.

  • It refined my knowledge of implementing GUI's using Tkinter.
  • It also was just a fun coding project in Python.

๐Ÿ‘€ Look & Feel

๐ŸชŸ My major priority in the development of this project was to copy the aesthetic and feel of the built-in applications that ran on Windows XP.

  • This meant gray buttons, recessed text, and pop-up windows for completions.
    • The window size is locked at 500x500 pixels as well, since MineSweeper was unable to be resized.
  • I also implemented a color picker for the player, using a 16-color limit with an open pallette on the screen.
    • This was inspired by early paint programs I would play with.

โŒจ๏ธ Coding & Algorithm

๐Ÿ This code was written in Python.

  • This did lead to some problems getting it to run on my Windows XP Virtual Machine.
  • This was simply due to the age of Windows XP, which stopped getting official support on April 8, 2014.
  • I ended up having to install a user generated Python interpreter to get it to run in Windows XP, found on this old reddit thread:
  • Of course, you can simply run this on your mordern OS without issue! [๐Ÿ™‚]

๐Ÿค– The AI for the game uses the Minimax Algorithm.

  • This means the the AI attemps to minimize the loss via a worst case scenario.
  • Since Tic-Tac-Toe is a fairly simple game with only 9 possible moves, I have given the AI the data set of all 8 possible winning combinations.
  • It tries to choose moves based on boxes that it can link to win the game.

  • If the AI is chosen to go first in a single-player game, it will choose a box randomly and try to build a win based on combinations that include this box.
  • Here is a link to more information about the minimax algorithm:

tic-tac-toe-windowsxp's People

Contributors

azaze7 avatar

Stargazers

Fernando Remes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.