Skip to content

Commit

Permalink
Merge pull request #346 from shrutisk0405/main
Browse files Browse the repository at this point in the history
Resolved Tie Indication Issue in Tic-Tac-Toe Game
  • Loading branch information
iamparas0 authored Nov 2, 2024
2 parents 24b184a + 66fd3b2 commit b64a2b6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions paras/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,28 @@ body {
font-weight: bold;
color: #28a745;
}
/* Draw message */
.draw-message {
margin-top: 10px;
font-size: 1.5rem;
font-weight: bold;
color: #ff5733;
}
.draw-message button {
margin: 10px;
padding: 8px 15px;
font-size: 1rem;
font-weight: bold;
background-color: #2196F3;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.draw-message button:hover {
background-color: #1976D2;
}

/* Result Board */
.result-board {
Expand Down
9 changes: 9 additions & 0 deletions paras/src/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,14 @@ const App = () => {
</div>
)}

{draw && !winner && (
<div className="draw-message">
<p>It's a draw!</p>
<button onClick={resetGame}>Restart</button>
</div>
)}


{/* Game History Section */}
{gameMode === 'multiplayer' && (
<div className="game-history">
Expand All @@ -366,6 +374,7 @@ const App = () => {




</div>
);
};
Expand Down
11 changes: 11 additions & 0 deletions paras/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{

"rewrites":[
{"source" : "./(.*)", "destination" : "/"}
],
"git": {
"deploymentEnabled": {
"main": false
}
}

"version": 2,
"builds": [
{
Expand All @@ -17,4 +27,5 @@
"main": false
}
}

}

1 comment on commit b64a2b6

@vercel
Copy link

@vercel vercel bot commented on b64a2b6 Nov 2, 2024

Choose a reason for hiding this comment

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

Deployment failed with the following error:

Could not parse File as JSON: paras/vercel.json

Please sign in to comment.