Coder Social home page Coder Social logo

connect-four-react-typescript-challenge's Introduction

Connect-Four Typescript Coding Challenge

This is my submission for a coding challenge to create a connect four game with React/Typescript. Commit history has been erased along with references to the company this was for. See the original criteria below:

Objective

Create a 2-player game of Connect Four with TypeScript and React.

Prompt

Create a two-player game of Connect Four

Requirements

  • The board should be 7 wide by 6 high
  • It should alternate between the 'red' and 'yellow' players turn
  • Clicking the "Drop" button should drop a token of the current player's to the bottom-most free position
  • Clicking the "Drop" button on a full column should have no effect
  • If either player gets four in a row (horizontally, vertically, or diagonally):
    • The "COLOR's turn" heading should be replaced by "COLOR won!"
    • The "Drop" buttons should be replaced by a "Play again" button
  • If the board is full and there is no winner:
    • The "COLOR's turn" heading should be replaced by "Draw!"
    • The "Drop" buttons should be replaced by a "Play again" button

Evaluation Criteria

  • TypeScript best practices
  • Show us your work through your commit history
  • We're looking for you to produce working code, with enough room to demonstrate how to structure components in a small program
  • Completeness: Did you complete the features?
  • Correctness: Does the functionality act in sensible, thought-out ways?
  • Maintainability: Is it written in a clean, maintainable way?

connect-four-react-typescript-challenge's People

Contributors

danbroadbent 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.