DEV Community

Cover image for Project : Coin Flipper & Color Boxes | Day 9
Jayant
Jayant

Posted on

Project : Coin Flipper & Color Boxes | Day 9

Coin Flipper

create a coin flipping counter.

The user should be able to click on a button to flip a coin. Every time the user clicks, the coin gets flipped again. The app should also keep track of how many times heads and tails have shown up.

Before building anything, think about the structure of your React app. Don’t build this application with a single component: think about how to break your app up into at least two separate components!

Here’s some inspiration:

Coin Flipper

If you’d like, get creative and come up with your own coin faces! If you want to use the same coin as I did, you can find the images here:

Heads:”https://tinyurl.com/react-coin-heads-jpg

Tails: “https://tinyurl.com/react-coin-tails-jpg

Code 👇

https://github.com/Developer-io-web/Coin-Flipper

Color Boxes

For this part, you should show a series of 16 boxes (a box is just square div with a background color).

Initially, each box should have a background color chosen from a random list of colors.

When you click any box:

  • it should change its color to a different random color.

Here’s some inspiration:

React Project

Code 👇

https://github.com/Developer-io-web/Color-Boxes

Happy Coding 😄!

Top comments (2)

Collapse
 
marcelinos46323 profile image
Marcelinoson Kamryn

The Coin Flipper & Color Boxes project combines interactive fun with engaging visuals, making it perfect for casual users and coding enthusiasts alike. The coin flipper feature delivers an instant coin flip with every click, offering a seamless and quick way to simulate random outcomes. Meanwhile, the color boxes add a splash of creativity, dynamically changing hues to create an engaging and visually appealing experience. This project not only entertains but also showcases how simple logic and vibrant design can come together to captivate users.

Collapse
 
jay818 profile image
Jayant

Day 9 Completed 🥳 , I have made 2 small React Project