shitchell / a-mad-kings-quest Goto Github PK
View Code? Open in Web Editor NEWA text based adventure game
License: Do What The F*ck You Want To Public License
A text based adventure game
License: Do What The F*ck You Want To Public License
Implement puzzle feature
Add better command help messages. Command help messages should follow the format:
usage: inspect room
usage: inspect item_name
usage: inspect monster_name
Retrieve information about the current room, an item, or a monster in the current room
This is achieved using the code:
def do_inspect(self, *args):
"""usage: inspect room
usage: inspect item_name
usage: inspect monster_name
Retrieve information about the current room, an item, or a monster in the current room"""
if args:
# code...
Need to add comments in the code explaining certain structures, how the parts of the code inter-relate, what functions do, etc...
Python is dynamically typed, meaning that it doesn't check variable types unlike a statically typed language such as Java. This can cause issues if you inadvertently pass a variable of the wrong type to a method.
However, python does offer something called "type hinting" which allows you to specify what type a variable should be. Then your IDE (such as PyCharm) or type checking tool can warn you if your code has places where the wrong variable types might be used.
Example:
Code
def print_num(num: int, padding: str = " ") -> str:
text = "%s%i" % (padding, num)
print(text)
return text
print_num("not an int", padding=">>")
PyCharm / Type checker warning
=> pep_type_annotations.py:9: error: Argument 1 to "print_num" has incompatible type "str"; expected "int"
Documentation:
https://realpython.com/python-type-checking/
Implement chest feature
Need to implement a way to have the player win when bos003 is defeated. Has to be in the config files
Play through the game / look through the code and try to ensure (as much as is reasonable) that the output matches the SRS document. Some liberties were taken (such as displaying the user's inventory after picking an item up. the game does display the required "{item_name} was picked up." but takes the liberty of providing some extra output that seemed helpful)
Document any game output that does not meet specifications or open an issue, and I'll make sure it matches.
Self explanatory? :p
link to slide on Google Drive
Link to SRS document
Room definitions are in section 3.1.1
Door definitions are in section 3.1.2
Implement save game command in GameCommandController
Probably ought to throw this in a new ABOUT.md file or create some Wiki pages for this
Probably ought to create a new ABOUT.md or some Wiki files to describe the MVC along with a few other things Barakat was asking for
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.