Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 76e1487

Browse files
Scale image to a reasonable size
1 parent a3610e9 commit 76e1487

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Home/Pages/Games/Nim/Index.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@page "/games/nim"
22
@layout MainLayout
33

4+
<PageTitle>Games - Nim</PageTitle>
5+
46
<Box Title="Nim">
57
<div id="gameBoard">
68
@for (int r = 0; r < State.StartingBoard.Count; r++)

Home/Pages/Games/Nim/Models/GameState.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,12 @@ public void ChangePlayer(Action stateHasChanged)
6868

6969
if (AgainstComputer && !IsPlayer1Move)
7070
{
71-
// AI Move
7271
ComputerMove = FindComputerMove();
7372
stateHasChanged();
7473

7574
Task.Run(() =>
7675
{
77-
Thread.Sleep(TimeSpan.FromSeconds(2)); // Pause for dramatic effect
76+
Thread.Sleep(TimeSpan.FromSeconds(1)); // Pause for dramatic effect
7877
TakeCoins(ComputerMove.Value.row, ComputerMove.Value.col);
7978
if (!IsGameOver)
8079
{
-1.14 MB
Loading

0 commit comments

Comments
 (0)