-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from cloud-tinkerers/setup-brython
Added Brython sample and configured http.server
- Loading branch information
Showing
5 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
brython | ||
brython==3.11.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Configuring Brython and Getting Started with Python Puzzle Quest | ||
|
||
Welcome to Python Puzzle Quest! This is a simple game built using Brython, a Python 3 implementation for client-side web programming. | ||
|
||
## Getting Started | ||
|
||
To get started with this project, you'll need to have Python 3 installed on your machine. You can download Python 3 from the official website: https://www.python.org/downloads/ | ||
|
||
Once you have Python 3 installed, you can run the game locally by following these steps: | ||
|
||
1. Clone the repository to your local machine. | ||
2. Navigate to the `src` directory. | ||
3. Start a local web server by running the command `python -m http.server 8080` in your terminal. | ||
|
||
```json | ||
"forwardPorts": [8080], | ||
``` | ||
|
||
4. Be sure to forward port 8080 in the devcontainer's `forwardPorts` attribute. | ||
5. Open your web browser and navigate to `http://localhost:8080`. | ||
|
||
## How to Play | ||
|
||
Once you have the game running in your web browser, you can use the arrow keys to move your character around the screen. Your goal is to collect as many coins as possible while avoiding the enemies. Good luck! | ||
|
||
## Contributing | ||
|
||
If you'd like to contribute to this project, please fork the repository and submit a pull request. We welcome contributions of all kinds, including bug fixes, new features, and documentation improvements. | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License. See the `LICENSE` file for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters