Welcome to the Bonsai Cutting Game! ✂️🌱
This project was created fully using GitHub Copilot, utilizing Copilot's Agent feature for autonomous, multi-step code generation and project setup.
Grow and care for your digital bonsai! New healthy leaves appear, but beware: bad leaves will show up and you must cut them before your bonsai gets sick! Configure the game to your liking and see if you can grow the healthiest bonsai in record time.
- Healthy leaves 🌿 appear every few seconds (configurable!)
- Bad leaves 🍂 appear and must be cut by clicking them
- Win 🏆 by growing enough healthy leaves with no bad ones
- Lose 💀 if too many bad leaves take over
You can change these options right in the app:
- ⏱️ Seconds for a healthy leaf to appear
- ⏱️ Seconds for a bad leaf to appear
- 🌿 Number of healthy leaves to win
- 🍂 Number of bad leaves to lose
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 to play in your browser.
- Beautiful SVG bonsai tree with animated leaves
- Interactive gameplay: click bad leaves to cut them
- Fully configurable win/lose conditions and timers
- Responsive and mobile-friendly design
- All code and features generated by GitHub Copilot Agent
This project was built step-by-step using the following prompts:
- I want to make a page where i can cut my bonsai. The time will be passing and I need to cut the bad parts.
- React and Next.js.
- Seems like there is an error
- You forgot the use client on the top of the files.
- Can you make the Bonsai more veautiful?
- Can you make the bonsai leafs to be more life a leaf?
- Now we only have 5 leaves. How many you can make?
- The tree is small, maybe make slightly bigger? It still needs to fit a mobile screen.
- Can you make those leaves better?
- Can you make the leaves only a circle back again?
- Not overlapping circle, each leaf is one circle.
- Now make the circle more leaf format.
- More detailed and pointed
- Leaf shape and bigger
- Can you update the README that this is created fully using GitHub Copilot?
- Explain that it is using Agent
- Can you type of the readm all the prompts?
- Now I want to change the game to have a win condition. For every 10 seconds a new leaf is added. And if you reach 30 green leaves you are a winner.
- Now I need that the time for a leaf to turn red is 2 times slower than a new leaf to appear.
- What is the fastest time for someone to win the game?
- Let's reduce that time. Let's make leaf turn red every 15 seconds.
- How long it takes for the fastest time to win?
- Let's reduce both times, from 10 seconds to 5 and from 15 seconds to 7 seconds.
- Let's reduce 5 to 1 and 7 to 3.
- Every bad one if stays for 1 second, it will turn a green one into red. If you get 10 red you lose.
- The game is not working now. I can't see new green or red leaves
- Now everytime a new red shows it turns all greens into red. That is wrong. The red after 1 second should turn only one green, not all.
- When a red shows it is turning all green into red. That is wrong.
- Remove the logic that makes the green turn into red.
- Now just show red leaves every 1 second.
- Now make the healthy one turn into red every 2 seconds.
- If a leaf is behind another one, I cannot click. So make the red ones always to the front.
- If you have 30 healthy leaves you win only if you have 0 red ones.
- I want to be able to configured the options of the game in the screen: I have: Number of seconds a Healthy Leaf appears. Number of seconds a Bad Leaf appears. I have the number of health leaves to win. I have the number of bad leaves to lose. Please give me a way to change those options in the browser.
- I want to see the number of bad leaves as well on the top together with the Healthy leaves
- Can I see the default option as well on the form to change the configurations?
- Can you change the number of Healthy Leaves to show to 1 second?
- I cannot edit the configuration.
- I still cannot change the options.
- The font on the inputs, change to green.
- The message when you lose or win needs to update based on the config
- Add the .gitignore
- Create a new repository on github
- Add all the prompts to the README
Enjoy your bonsai adventure! 🌳✨