Coder Social home page Coder Social logo

classes_games's Introduction

Classes_games

Repository made for two games.

Each task has its directory. In the task directory you can find a folder with all the classes and init module to import all the classes for the main. py

Task 5 Description

The game has a folder with all the necessary classes for it to function properly.

  • Character: is the main class for all the character, Friend and Enemy inherit it.
  • Enemy: the class for the enemies, who can be fought and defeated with their weakness item.
  • Friend (not used in the main.py, but created an additional version with its usage in main_with_friend.py): can help you choose the right weapon for the enemy and notify of dange in the room about to be entered.
  • Item: the class for all the items that can be used throughout the game.
  • Room: the class for all the settings and rooms.

Task 6 - "Helping Levchyk!"

Lviv

The game has a folder with all the necessary classes for it to function properly. The purpose of the game is to go all the way to Rynok Square from Kozelnytska street to bring all the treats for Levchyk. On the way there, you can encounter different characters, and not all of them are going to be friends! You should beware of batyar and lotr. If you have the requested item for them, you will be able to pass to the next street, otherwise you will fail the game. There are also some friends, who can give you treats for Levchyk, but some require an item to be given for them as well.

Here is Levchyk

  • Character: is the main class for all the character, Friend and Enemy inherit it.
  • Levchyk: is the very first mayor of all the cats in Lviv, he is nothing but a Friend to you!
  • Enemy: the class for the enemies, who can inspect your torba for the desired items.
  • Friend: can notify you of dange in the room about to be entered.
  • Batyar: a free-spirit and adventurous Batyar, who can be dangerous only in terms of inspecting your purse for Piana Vyshnia...
  • Lotr: an extremely hideous and dangerous thief!
  • Cavalier: a friend of yours, who always tries to take you out, but has something yummy for Levchyk!
  • Student: a sleep-deprived creature, who would do anything for a cup of coffee... Also in return gives you a treat!
  • Street: the class for all the settings and streets.
  • Item: the class for all the items that can be used throughout the game.

Launch example (Starting the game)

To start the game, you shall download the necessary directory for the task and run the main script (which is located in the task direstory, outside the folder with classes)

Kozelnytska street
--------------------
A well-known street among UCU students.
You can go to 'Stryiska street'
Andriy Sadovyi
A dedicated mayor to his city and citizens.
The [Coffee] is here - A drink for every person, who couldn't sleep.
>

classes_games's People

Contributors

khrystynamk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.