aidanjbennett / fruit-game

Home Page:https://fruit-guessing-game.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fruit guessing game

About

This is a simple game where you have to guess the fruit name which is only five letters long. You have 3 chances to guess the fruit name. If you guess the fruit name correctly, you will win the game. If you fail to guess the fruit name, you will lose the game. You can play the game as many times as you want. A live version is hosted at https://fruit-guessing-game.vercel.app/

How to play

  • Come up with a fruit name
  • Enter each fruit letter in the input box's (note only one letter go in a box)
  • Press "Guess" or enter to submit your guess
  • You have up to 3 attempts to get the guess correct to win. Good luck 🎉

How to run a local version

  • Clone the repository
  • Open the terminal and navigate to the project folder
  • Run "npm ci" command to cleanly install the dependencies (this will respect the dependencies versions in the package-lock.json file)
  • Run "npm run dev" command to start the game (this will start the game in the development mode)
  • Open http://localhost:3000 to view it in the browser

About

https://fruit-guessing-game.vercel.app

License:MIT License


Languages

Language:Svelte 68.9%Language:TypeScript 15.8%Language:JavaScript 12.0%Language:HTML 2.8%Language:CSS 0.5%