Skip to content

Reda-BENMAKDAD/wordle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordle : my implementation of the wordle game

This project is a simple implementation of the wordle game to showcase my skills in the React library.

What is wordle?

Wordle is a game where you have to guess a word in 5 tries. The word is randomly generated and you have to guess it by typing it in the input field. The game will tell you if the letter you typed is in the word and if it is in the right place. If you guess the word, you win, otherwise you lose. you will understand more by running the project and playing the game.

How to run the project?

  1. Clone the project
     git clone https://github.com/reda-benmakdad/wordle.git
  2. Install the dependencies
    npm install
  3. Run the project
    npm start
  4. Enjoy the game by visiting http://localhost:3000/ in your browser

Making process of the project

I played a lot of wordle on https://wordlegame.org/ and i was thinking if i was capable of implementing this game myself, soo...i gave it a try and here we are.

first of all i designed this "fun game" looking website on figma, as i wanted to learn figma, it was pretty hard as a newbie to figma but i eventually got a result that you can check here!

I then implemted this design in react, i created various components for the different parts of the game, that i styled accordingly to the figma design in pure css. i used axios to fetch the word definition from the free dictionary api.

I then coded the game logic word typing, checking if word exists, tries...etc. using react state and props and basic javascript.

Technologies used

  • React
  • Axios
  • Free Dictionary API
  • Node.js
  • Pure css

Left to do:

the interface is implemented and basic game logic is working, but there are still some features to add:

  • find a way to generate a random word to guess, since now i try guessing the harcoded word "water" each time.
  • stop game when user guesses right, or after 5 tries.

About

Wordle : my implementation of the wordle game

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published