Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.83 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.83 KB

Introduction about bridges-games

BRIDGES can easily help you to start out the python in a interesting way
Link: The official tutorial

How to prepare environment?

You should install bridges packages by pip3 install bridges or conda install bridgesin Anaconda prompt
Or you can follow BRIDGES official guideline

The parameter in my code

There are some parameters in my code you should change by yourself
Such as my_game = BugStomp(219, "User Name", "API Key", 30, 30) or game = RaceCar(221, "User Name", "API Key")
User Name and API Key are belongs to your BRIDGES account

Bugstomp is a very simple game on a 30x30 grid, where the background is all black and all symbols are white. The character controlled by the player is shown using the 'man' symbol and the bug to stomp is shown using the 'bug3' symbol.

This is a game about man catching a bug by using 🔼🔽◀️▶️ When the man touch the bug, you will get 1 point
The game will end when you get 10 points

Note

Of course you can adjust parameter by yourself!

The triangle is the car (you can use a different symbol). The road moves over from right ▶️ to left ◀️ . The user has to move the car to adjust to the road. When the car overlay the margin of the road, the game will end.