Skip to content

Conversation

@scantea
Copy link

@scantea scantea commented Jun 25, 2021

Tried experimenting on the kawaii-branch but broke some stuff, so submitting the css pretty up version instead with functional code lolol Good Call on the experimental branch Audrey. Thank you!! <3 Some tests arent' passing, due to some changes I've made on the app.js file, but the code seems functional under all conditions? Not sure what happened, maybe i'm not running the tests correctly???

Copy link

@audreyandoy audreyandoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Saharai! You achieved all the learning goals and created such a cute color scheme! I also loved the button animation too. I'm so glad you're having fun with css!

You passed all the tests, I think it was the console.log that made your test submission look funky.

Other than that, keep up the hard work!

Comment on lines +34 to +38
const[currentPlayer,setCurrentPlayer]=useState(PLAYER_1);
//initial number of squares filled equals 0
const[numSquaresFilled,setNumSquaresFilled]=useState(0);
//intial winner is Null
const[winner,setWinner] = useState(null);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great use of state to keep track of current player, winner, and filled squares

Comment on lines 110 to 116
const resetGame = () => {
// Complete in Wave 4
setSquares(generateSquares());//setting squares to intial empty board
setCurrentPlayer('x');
setNumSquaresFilled(0);
setWinner(null);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job creating the resetGame function!

Comment on lines +5 to +7
background-color: #0f7deb;
color: rgb(193, 131, 232);
border: 6px solid #a1ccf7;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cute!!! Even the kawaii-version branch had an adorable color scheme!

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

Successfully merging this pull request may close these issues.

2 participants