generated from nighthawkcoders/portfolio_2025
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from XavierTho/main
Updates to Period 3 Topic Page: Scrum Master Spencer
- Loading branch information
Showing
11 changed files
with
117 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,12 @@ authors: Ahaan, Xavier, Spencer, Vasanth | |
|
||
|
||
|
||
<!DOCTYPE html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Chess Hangout Zone - Chess Game with Chat</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
<style> | ||
/* Styles */ | ||
body { | ||
|
@@ -179,7 +178,7 @@ authors: Ahaan, Xavier, Spencer, Vasanth | |
generateBoard(); | ||
displayTurnPopup(); | ||
if (gameMode === 'bot' && turn === 'black') { | ||
setTimeout(botMove, 1000); | ||
setTimeout(botMove, 5000); // 5 seconds delay for bot move | ||
} | ||
} | ||
|
||
|
@@ -202,31 +201,12 @@ authors: Ahaan, Xavier, Spencer, Vasanth | |
|
||
function getLegalMoves(piece, startRow, startCol) { | ||
const moves = []; | ||
switch (piece) { | ||
case 'p': // Pawn | ||
// Add pawn movement and capture rules | ||
break; | ||
case 'r': // Rook | ||
// Add rook movement rules | ||
break; | ||
case 'n': // Knight | ||
// Add knight movement rules | ||
break; | ||
case 'b': // Bishop | ||
// Add bishop movement rules | ||
break; | ||
case 'q': // Queen | ||
// Add queen movement rules | ||
break; | ||
case 'k': // King | ||
// Add king movement rules | ||
break; | ||
} | ||
// Add move logic here | ||
return moves.filter(move => isLegalMove(move)); | ||
} | ||
|
||
function isLegalMove(move) { | ||
return true; // Implement legality check | ||
return true; // Add legality check | ||
} | ||
|
||
function sendBotMessage() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.