mirror of
https://github.com/dotnet/intro-to-dotnet-web-dev.git
synced 2025-12-06 05:32:03 +01:00
Update 5-blazor/README.md
Co-authored-by: Katie Savage <katie.a.savage@gmail.com>
This commit is contained in:
parent
a5440fd51b
commit
cb3cdb1ef4
|
|
@ -305,7 +305,7 @@ The game logic for Connect Four is not too difficult to program. We need some c
|
||||||
|
|
||||||
We tell the game state to play a piece in the submitted column called `col` and capture the row reported by the game state. We can then define the 3 CSS classes to assign to the game piece to identify the player's turn, the column the piece was placed in, and the landing row. The last line of the method chooses the next element in the `Pieces` array and assigns these classes to that game piece.
|
We tell the game state to play a piece in the submitted column called `col` and capture the row reported by the game state. We can then define the 3 CSS classes to assign to the game piece to identify the player's turn, the column the piece was placed in, and the landing row. The last line of the method chooses the next element in the `Pieces` array and assigns these classes to that game piece.
|
||||||
|
|
||||||
If you look in the suppled `Board.razor.css` you'll find the CSS classes that match up to those assigned in line 2 of the method.
|
If you look in the supplied `Board.razor.css` you'll find the CSS classes that match up to those assigned in line 2 of the method.
|
||||||
|
|
||||||
The resultant effect is that the game piece is placed in the column and animated a drop into the bottom-most row when this method is called.
|
The resultant effect is that the game piece is placed in the column and animated a drop into the bottom-most row when this method is called.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue