Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTBC10-WAFFLE #19

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2222051
Render first row of letters
peanutyabing Feb 15, 2023
e1c2944
Implement letter swops
peanutyabing Feb 15, 2023
7963eb8
Add exception handling to swopping function
peanutyabing Feb 15, 2023
bc2590d
Implement color rendering and updating based on letter location
peanutyabing Feb 15, 2023
b105e95
Develop waffle maker to generate random waffles
peanutyabing Feb 15, 2023
e3d150d
Render and implement the full 5*5 grid with swops and color updates
peanutyabing Feb 15, 2023
f8fd963
Lock holes in-place and style UI
peanutyabing Feb 16, 2023
a6c19fa
Fix waffle making and color updating logic - major implementation cha…
peanutyabing Feb 17, 2023
b7b16c3
Add a counter for the swops remaining
peanutyabing Feb 17, 2023
8cb3307
Add game outcome div for the winning scenario
peanutyabing Feb 18, 2023
c13dc11
Remove unused targetCoord attribute from the state of the Tiles compo…
peanutyabing Feb 19, 2023
ca67fff
Modify pre-scrambling logic to fix 5 nodes and scramble all other tiles
peanutyabing Feb 19, 2023
0387e52
Refactor waffler-finder and improve word finding logic to introduce m…
peanutyabing Feb 19, 2023
743b66b
Refactor handleClick function, prevent clicking on the hole-gap, and …
peanutyabing Feb 19, 2023
52ddeeb
Render black waffle for the game-over screen
peanutyabing Feb 19, 2023
a2faab4
Render game rules modal
peanutyabing Feb 19, 2023
1736ec4
Resize modal images
peanutyabing Feb 19, 2023
ca57994
Render solution grid after a loss
peanutyabing Feb 20, 2023
7931ca4
Render rainbow animation after a win
peanutyabing Feb 20, 2023
e19fe24
Fix rainbow animation for mobile screens
peanutyabing Feb 20, 2023
48aeed9
Render dictionary definitions (WIP - some words may be missing defini…
peanutyabing Feb 20, 2023
41626dd
Add full local dictionary and render definitions from it
peanutyabing Feb 21, 2023
d0c31e1
Merge pull request #1 from peanutyabing/dictionary-feature
peanutyabing Feb 21, 2023
673faa7
Clean up
peanutyabing Feb 21, 2023
75c99af
Fix bug in rendering of definitions with a ternary operator to displa…
peanutyabing Feb 21, 2023
bc43105
Implement daily waffle that refreshes every 24 hours
peanutyabing Feb 21, 2023
e41f9c4
Add menu to allow users to toggle between playing the daily waffle or…
peanutyabing Feb 22, 2023
86750c9
Add state tracking to allow the user to continue progressing on the d…
peanutyabing Feb 22, 2023
ba7e1b9
Add local storage to keep track of daily waffle's progress betweeen b…
peanutyabing Feb 22, 2023
c329a0a
Merge pull request #2 from peanutyabing/toggle-daily-waffle
peanutyabing Feb 22, 2023
97ceb87
Add play again button for unlimited mode
peanutyabing Feb 22, 2023
60452ad
Make styling and UI improvements
peanutyabing Feb 22, 2023
1056477
Final touchup
peanutyabing Feb 23, 2023
f80390b
Write Readme and add color differentiation for clicked tiles
peanutyabing Feb 23, 2023
4ad9b2a
Make color adjustments to improve contrast
peanutyabing Feb 25, 2023
9ab6a37
Follow modern JS importing and referencing conventions
peanutyabing Feb 28, 2023
ee2e7e7
Remove one waffle from daily waffles that has an offensive word
peanutyabing Mar 1, 2023
607db66
Enhance clarity of game rules
peanutyabing Mar 10, 2023
3e9c733
Update README.md
peanutyabing Mar 22, 2023
357034c
Update README.md
peanutyabing Mar 22, 2023
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
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Rocket Academy Coding Bootcamp: Project 1: Frontend App
# WAFFLE

https://bc.rocketacademy.co/1-frontend/1.p-frontend-app
## About this Project

## Available Scripts
Hello! Welcome to my first [Bootcamp](https://bc.rocketacademy.co/1-frontend/1.p-frontend-app) project, a clone of the WAFFLE game. Give it a try [here](https://peanutyabing.github.io/project-waffle/)!

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). In the project directory, you can run:
I built this game to practice using React, and chose WAFFLE as I loved playing the [original game](https://wafflegame.net/) created by [James Robinson](https://twitter.com/jamesjessian).

### `npm start`
Please tell me what you think and what other features you would like you see in the Discussions.

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
## Available Scripts

The page will reload when you make changes.\
You may also see any lint errors in the console.
This project was bootstrapped with Create React App. In the project directory, you can run _npm start_, to run the app in the development mode. Open http://localhost:3000 to view it in your browser. The page will reload when you make changes.
1,327 changes: 1,099 additions & 228 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"name": "project1-bootcamp",
"version": "0.1.0",
"homepage": "https://peanutyabing.github.io/project-waffle",
"private": true,
"dependencies": {
"bootstrap": "^5.2.3",
"react": "^18.1.0",
"react-bootstrap": "^2.7.2",
"react-dom": "^18.1.0",
"react-scripts": "5.0.1"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build"
"build": "react-scripts build",
"test": "jest"
},
"eslintConfig": {
"extends": [
Expand All @@ -27,5 +33,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"gh-pages": "^5.0.0",
"jest": "^27.5.1",
"react-test-renderer": "^18.2.0"
}
}
20 changes: 17 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,33 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/logo-waffle2.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo-waffle.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap"
rel="stylesheet"
/>
<!-- React Bootstrap -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
crossorigin="anonymous"
/>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -24,7 +38,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Rocket Bootcamp Project</title>
<title>Waffle: A Rocket Bootcamp Project</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file added public/logo-waffle2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading