DEV Community

Cover image for Text based adventure game
asepKargo
asepKargo

Posted on

Text based adventure game

Project from codecademy, an text based adventure game that i created using python.

The code basically using class and functions to tell the story and give different outcome based on the player picks

https://github.com/axeladelwyn/codecademy-project

Creating this text-based adventure game was a challenge and give me a lot of lesson about how python works.

Top comments (1)

Collapse
 
rjbaddeley profile image
Robert Baddeley

I would look at taking it further, as a good learning experience

Have a class called Room, that holds the description, options of what can be done, and which directions lead somewhere else.

A Map class, which is comprised of a bunch of rooms.

A Player class, representing the person playing the game. The Player class can manage the players state (e.g. which room they are in), any items they’ve picked up, etc.