Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homework 10 - Angular components #237

Open
MZabolotnev opened this issue Dec 16, 2021 · 1 comment
Open

Homework 10 - Angular components #237

MZabolotnev opened this issue Dec 16, 2021 · 1 comment

Comments

@MZabolotnev
Copy link
Contributor

No description provided.

@MZabolotnev
Copy link
Contributor Author

MZabolotnev commented Dec 16, 2021

Deadline

  • Create pull request until 20 Dec, 12:00
  • Mistakes and comments should be resolved until 22 Dec, 21:00
  • Request should be merged until 22 Dec, 21:00
  • In other cases pull request will be closed

First of all

  1. Get the latest updates from Academy's repo by instruction;

  2. To your homework folder add a folder named 10-components

  3. Add your files into this folder:

homeworks/elon.musk_spacex2021/10-components

Task:

  1. Create a tic-tac-toe game according to the design

  2. A set of colors - on your choice, you can choose a palette to your liking.

  3. The state of the gaming field should be stored in an array of arrays like:

const state = [
    [0, 0, 1],
    [0, 1, 2],
    [0, 0, 1],
];
  1. Mandatory requirements:
  • Two players play, take turns
  • The game should display a win counter for each player
  • There should be a button to reset the current game
  • There should be a button to reset all
  • The game should display whose turn it is now
  1. Page should be responsive

Advanced Task

  • When reload the page, the game should start from the place where it ended, and save its progress
  • Add the ability to enter player names instead of Player 1 and Player 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant