Coder Social home page Coder Social logo

xo-proj's Introduction

Tic Tac Toe Game

XO Game built with Python using tkinter as grapchial interface.

The game have bugs!, and your task is to solve them.

Chalanges

  • Challenge 01 : in playerChoice() method write a code to choose between X and O.
  • Challenge 02 : write the implementation of reset() method.
  • Challenge 03 : show pop-up message when game is over in the reset method.
  • Challenge 04 : add text title to the program, and name it "XO Game".
  • Challenge 05 : make the player start with random value between X and O.

Steps

  1. Fork the project
  2. Solve the issues
  3. Commit and push your suloation on your forked repo
  4. Write comment on the issues that you have solved

If you have question, write comment on the issue page.

xo-proj's People

Contributors

malekcoders avatar devalq avatar

Watchers

 avatar

xo-proj's Issues

Challenge 02 : reset() Function doesn’t reseting the game

Issues:

in the reset() function is only closing the game. it should reset the board and enable the player to play again.

Write your implementation on the reset() function.

Code:

def reset():
    # Challenge 02 hard: write an implementation of reset() method 
    root.quit() # Remove this line when you implement your code

Challenge 01 : Write an implementation of playerChoice() method

Issues:

There's no switching between O and X for each turn.

Code:

def playerChoice():
    global player        
    player = 'O' # remove this line when you implement your code

Note:

This method has incorrect logic, it returns O for each time the method is called.
Each time the method is called, it should return different values between O and X.

Challenge 01: in the playerChoice() method write a code to choose between X and O

Challenge 05: The game always start with X value

Issue:

The game always starts with an X value, change it to start with a random value between X and O

Code:

# Challenge 05 easy: make player choice random between X and O at the start of the game
Player = 'X'

Fork xo project

Greetings:
@devAlq

Please do a fork on this repo and implement your solution.

Once you solved an issue, write a comment on the issue that you have solved.

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.