Skip to content

Starwards game built using SWAPI. The users are able to select random people or starships and battle based on a common attribute.

Notifications You must be signed in to change notification settings

Lunnatica/starwars-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Try it live!

https://starwars-game.vercel.app/

Screenshots

StarWars App 1

StarWars App2

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm install

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm test

Launches the test runner in the interactive watch mode.

npm build

Builds the app for production to the build folder.

Description of the app: Star Wars Top Trumps

Using SWAPI: https://swapi.dev/documentation

Build an application to select random people or starships and render their details to see who would win based on a common attribute. i.e. people have mass and starships have crew. A person with greater mass wins, a starship with more crew wins.

The app should render the attributes from the resource in a simple web page that allows you to ‘play’ the game.

Once two cards are displayed the app should declare one of the cards a winner based on the higher common attribute.

Having displayed the winning card, the user should be able to play again using an action button that repeats the same request.

1 - Score counter. If there are two players, left and right, show how many times each side has won.
2 - Option to select which resource to play against
3 - Use Bootstrap-4 and display the details in a card https://getbootstrap.com/docs/4.1/components/card and the winning attribute in badges https://getbootstrap.com/docs/4.1/components/badge

About

Starwards game built using SWAPI. The users are able to select random people or starships and battle based on a common attribute.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published