-
Notifications
You must be signed in to change notification settings - Fork 71
Rock-Saharai Cante🐨 #44
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
base: master
Are you sure you want to change the base?
Conversation
audreyandoy
left a comment
There was a problem hiding this 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!
| 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); |
There was a problem hiding this comment.
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
| const resetGame = () => { | ||
| // Complete in Wave 4 | ||
| setSquares(generateSquares());//setting squares to intial empty board | ||
| setCurrentPlayer('x'); | ||
| setNumSquaresFilled(0); | ||
| setWinner(null); | ||
| } |
There was a problem hiding this comment.
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!
| background-color: #0f7deb; | ||
| color: rgb(193, 131, 232); | ||
| border: 6px solid #a1ccf7; |
There was a problem hiding this comment.
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!
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???