Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
51ff136
Add ReadMe file
Paloma-Cardozo Feb 2, 2026
48a9441
Setup basic card grid layout with CSS Grid
Paloma-Cardozo Feb 2, 2026
7367d84
Merge branch 'master' into paloma
Paloma-Cardozo Feb 2, 2026
231c52a
Add game title and subtitle, and improve card styling
Paloma-Cardozo Feb 2, 2026
472665e
Merge branch 'paloma' of https://github.com/Paloma-Cardozo/FrogsHunte…
Paloma-Cardozo Feb 2, 2026
6840cda
Implement clickable flip cards and refine grid styling
Paloma-Cardozo Feb 2, 2026
0da44f0
Ensure card flips back automatically after click
Paloma-Cardozo Feb 3, 2026
6c5089d
Enable basic game interaction with flip cards
Paloma-Cardozo Feb 3, 2026
3c4072e
Introduce data-driven card setup and dynamic board rendering
Paloma-Cardozo Feb 3, 2026
657d320
Correct name to 'Frog Hunter', added info about counter/timer
Iryna-git-hub Feb 3, 2026
f5ddf50
Implement complete card matching flow
Paloma-Cardozo Feb 3, 2026
7bc7628
Merge branch 'paloma' of https://github.com/Paloma-Cardozo/FrogsHunte…
Paloma-Cardozo Feb 3, 2026
a7780e4
Fix random card selection
Paloma-Cardozo Feb 3, 2026
12fc30a
deleted duplicate lines
Iryna-git-hub Feb 3, 2026
34f64a1
added counter and timer functions
Iryna-git-hub Feb 4, 2026
e12bb10
changed format from '0s' to '0min 0s'
Iryna-git-hub Feb 4, 2026
24dd90f
added stopping the timer when all cards are matched
Iryna-git-hub Feb 4, 2026
6e6fe72
changed the 'Start Game' button label to 'New Game' to clarify its pu…
Iryna-git-hub Feb 4, 2026
0817105
implemented a winner popup when all cards are matched
Iryna-git-hub Feb 4, 2026
72f7889
implemented starting a new game when the 'New Game' button in the dia…
Iryna-git-hub Feb 4, 2026
4b3c5bb
aligned the New Game button in dialog
Iryna-git-hub Feb 4, 2026
b633223
restructured script.js
Iryna-git-hub Feb 4, 2026
abcf437
added a divider between Moves and Timer
Iryna-git-hub Feb 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Images/frog-hunter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/frog9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/froggy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/lotus-flower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# 🐸 Frog Hunter – Memory Game

Frog Hunter is a browser-based memory game developed as part of the **Foundation Project at Hack Your Future**.

The game is inspired by the classic Memory Game and challenges players to find all matching pairs of cards by flipping them two at a time.
Our focus is on making the game work and building a smooth, intuitive, and enjoyable experience that encourages players to keep playing.

This project is developed incrementally, following a sprint-based approach, where functionality, structure, and complexity grow step by step.

---

## 🎮 About the Game

In Frog Hunter, players interact with a grid of cards showing frog-themed images.

- Cards start face down
- Players flip cards to reveal the images
- Only two cards can be revealed at the same time
- Matching cards remain revealed
- Non-matching cards flip back after a short delay
- The game ends once all matching pairs have been found
- The timer starts from when the player clicks their first card
- The counter shows how many times the player has revealed a card


The game logic and interactions are designed to be clear, responsive, and easy to understand.

---

## 🛠️ Technologies & Approach

This project is built using:

- **HTML** for structure
- **CSS** for layout and animations
- **JavaScript** for game logic and DOM manipulation
- **Git & GitHub** for version control and collaboration

As part of the project milestones, the game evolves from a fully frontend-based implementation to a version that includes:

- Fetching card data from a backend API
- Storing card information in a database

These steps are introduced progressively as the project advances through the sprints.

---

## 📂 Project Structure

/frogsHunter
│── index.html
│── styles.css
│── script.js

The structure is intentionally simple, allowing us to focus on core concepts such as game logic, state handling, and user interaction.

---

## 👩🏻‍💻👩🏼‍💻 Team

This project is developed as a pair-programming exercise, emphasizing collaboration, communication, and shared ownership of the codebase:

- **Paloma Cardozo**
- **Iryna Lopatina**

---

## 📌 Project Context & Milestones

The project follows an iterative, sprint-based workflow:

- **Sprint 1:** Frontend fundamentals, card interactions, layout, and animations
- **Sprint 2:** Backend integration, API usage, and database-driven cards
- **Sprint 3:** Complete game logic and additional features to enhance gameplay

Each sprint builds on the previous one, taking the project from a simple interactive prototype to a fully playable memory game.
172 changes: 52 additions & 120 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,137 +3,69 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<title>Frog Hunter</title>
<link rel="stylesheet" href="styles.css" />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="container">
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog1</h1>
</div>
</div>
</div>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog2</h1>
</div>
</div>
</div>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog3</h1>
</div>
</div>
</div>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog4</h1>
</div>
</div>
</div>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog1</h1>
</div>
</div>
</div>
<body>
<h1 class="title">
<img
src="Images/frog-hunter.png"
alt="Person dressed as a frog"
class="frog-icon"
/>
Froggy Pairs
<img
src="Images/frog-hunter.png"
alt="Person dressed as a frog"
class="frog-icon"
/>
</h1>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog2</h1>
</div>
</div>
</div>
<h2 class="subtitle">Can you match all the frogs?</h2>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog3</h1>
</div>
</div>
</div>
<div class="game">
<div class="controls">
<button class="button">
<img
src="Images/froggy.png"
alt="Happy frog icon"
class="frog-icon"
/>
<span class="button-text">New Game</span>
</button>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog4</h1>
</div>
<div class="state">
<span class="moves">Moves: 0</span>&nbsp;&middot;&nbsp;
<span class="timer">Time: 0min 0s</span>
</div>
</div>

<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img
src="lotus.png"
alt="Avatar"
/>
</div>
<div class="flip-card-back">
<h1>Frog</h1>
</div>
</div>
<div class="container"></div>
</div>
<div
class="winner"
role="dialog"
aria-live="polite"
aria-modal="true"
hidden
>
<div class="winner-card">
<h2>YOU WIN!</h2>
<img src="Images/frog.gif" alt="Frog animation" class="frog-icon" />
<p class="winner-stats">
<span class="winner-moves">Moves: 0</span>
&nbsp;&middot;&nbsp;
<span class="winner-time">Time: 0min 0s</span>
</p>
<button id="new-game-btn" class="button">New Game</button>
</div>
</div>

<script src="script.js"></script>
</body>
</html>
Binary file removed lotus.png
Binary file not shown.
Loading