Giter Site home page Giter Site logo

tic-tac-toe's Introduction

Programming Challenge

Objective

Implement a TicTacToe game according to the wikipedia page.

Key Features:

  • The game is a 3x3 board
  • The game is played in the same browser window
  • Before starting a game, the player names are provided (optional)
  • One player starts with the first move
  • After selecting a field on the board, the game automatically switches to the other player
  • When the game is over, show the result of which player has won or if it was a draw
  • Target browser is Chrome

You have the following application architecture:

  • webpack.config.babel.js is already provided. Extend it as you see fit.
  • src/index.js is the application entrypoint.
  • src/index.html is the application markup. This one already comes with some basic css included inline.
  • src/store to implement your game logic and player handling (some more info provided in there).
  • src/components to implement your view logic.

Nice to haves:

  • +1 if you add tests to the project
  • +1 if you provide clean commit messages
  • +1 if you upgrade all dependencies to the latest version

Installation / Getting started

Initialize this project as a git repository. Make the first commit without applying any changes to the code. Then, start your solution.

$ clone the repository
$ git clone [email protected]:fidor/programming-challenge.rb.git

# make a fresh git repo
$ rm -rf .git
$ git init .
$ git add .
$ git commit -m "Your initial commit message of choice"

Ensure you have the following software (globally) installed on your system:

  • [node.js](http://nodejs.org/) ^10.0.0
# install dependencies
$ npm install

# start the dev server @ http://localhost:8080
$ npm start

Building / transpiling the project

$ npm run build

Project submission

Feel free to place this test on your Github, Gitlab, Bitbucket, etc account as a public repository. Send the link back to us. We are looking forward to hearing from you. Good luck! :)

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.