summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohit T P <tprohit9@gmail.com>2024-09-16 04:44:24 +0530
committerRohit T P <tprohit9@gmail.com>2024-09-16 04:44:24 +0530
commit437339b37a186567124e9e8d5c1faacb89425f13 (patch)
treec8c1f87789c0b662213383b02839002c6b402223
parent012ce933783199469112e1394ddc72fe2784528f (diff)
added README.MD
-rw-r--r--README.MD50
-rw-r--r--css/index.css (renamed from index.css)0
-rw-r--r--index.html12
-rw-r--r--js/enemy.js (renamed from enemy.js)0
-rw-r--r--js/index.js (renamed from index.js)0
-rw-r--r--js/logic.js (renamed from logic.js)0
-rw-r--r--js/maze.js (renamed from maze.js)0
-rw-r--r--js/render.js (renamed from render.js)0
8 files changed, 56 insertions, 6 deletions
diff --git a/README.MD b/README.MD
new file mode 100644
index 0000000..224e734
--- /dev/null
+++ b/README.MD
@@ -0,0 +1,50 @@
+# CatchUp: Strategic Maze Trapping Game
+
+## Table of Contents
+- [Introduction](#introduction)
+- [Features](#features)
+- [How to Play](#how-to-play)
+- [Game Rules](#game-rules)
+- [Technical Details](#technical-details)
+
+## Introduction
+
+CatchUp is an engaging, browser-based maze game that challenges players' strategic thinking and spatial awareness. In this unique twist on traditional maze games, players control two blue pieces with the goal of trapping a red enemy piece within the confines of a procedurally generated maze.
+
+## Features
+
+- **Dynamic Maze Generation**: Each game presents a new, procedurally generated maze, ensuring a fresh challenge every time.
+- **Dual Player Control**: Maneuver two player pieces strategically, switching between them to outmaneuver the enemy.
+- **Intelligent Enemy AI**: Face off against a smart opponent that calculates its moves to avoid entrapment.
+- **Adjustable Difficulty**: Customize your gaming experience with a sliding difficulty scale, affecting maze complexity and enemy behavior.
+- **Limited Moves**: Race against a move counter, adding an element of urgency to your strategic planning.
+
+## How to Play
+
+1. Go to the [CatchUp Game](https://rohittp.com/catchup/) website.
+2. Use the arrow keys (↑, ↓, ←, →) to move the active player piece.
+3. Press the spacebar to switch control between your two pieces.
+4. Strategically position your pieces to cut off all escape routes for the enemy (red piece).
+5. Win by trapping the enemy with no valid moves left, before running out of moves yourself.
+
+## Game Rules
+
+- Players control two blue pieces, while the AI controls one red piece.
+- All pieces can move any number of steps in a straight line until they hit a wall or another piece.
+- Players and the enemy take turns moving.
+- The game ends when either:
+ - The enemy has no valid moves left (Player wins)
+ - The player runs out of moves (Player loses)
+- The difficulty slider adjusts:
+ - Maze complexity
+ - Initial piece placement
+ - Number of moves allowed
+
+## Technical Details
+
+- **Maze Generation**: Randomized Depth-First Search algorithm
+- **Enemy AI**: Implements a look-ahead algorithm to maximize survival chances
+
+---
+
+Enjoy playing CatchUp, and may the best strategist win!
diff --git a/index.css b/css/index.css
index 766d45f..766d45f 100644
--- a/index.css
+++ b/css/index.css
diff --git a/index.html b/index.html
index 49534c8..c3330f6 100644
--- a/index.html
+++ b/index.html
@@ -4,13 +4,13 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CatchUp</title>
- <link rel="stylesheet" href="index.css">
+ <link rel="stylesheet" href="css/index.css">
- <script src="enemy.js" defer></script>
- <script src="maze.js" defer></script>
- <script src="logic.js" defer></script>
- <script src="render.js" defer></script>
- <script src="index.js" defer></script>
+ <script src="js/enemy.js" defer></script>
+ <script src="js/maze.js" defer></script>
+ <script src="js/logic.js" defer></script>
+ <script src="js/render.js" defer></script>
+ <script src="js/index.js" defer></script>
</head>
<body>
<div class="container">
diff --git a/enemy.js b/js/enemy.js
index f91cab4..f91cab4 100644
--- a/enemy.js
+++ b/js/enemy.js
diff --git a/index.js b/js/index.js
index b5ad00e..b5ad00e 100644
--- a/index.js
+++ b/js/index.js
diff --git a/logic.js b/js/logic.js
index c85cf78..c85cf78 100644
--- a/logic.js
+++ b/js/logic.js
diff --git a/maze.js b/js/maze.js
index 96cf5f1..96cf5f1 100644
--- a/maze.js
+++ b/js/maze.js
diff --git a/render.js b/js/render.js
index 4eb3f24..4eb3f24 100644
--- a/render.js
+++ b/js/render.js