Git Product home page Git Product logo

trabalho_luigi's Introduction

trabalho_luigi

8 locais do local inicial sai para dois caminhos um pro lado e um pra cima, vai seguind ate um camiho onde cai no porao, o destino final é a torre para poder pular para outro navio.

class Local:

def __init__ (self, descricao = "",monstro  = "", tesouro = "", cabineAcima = "", cabineAbaixo =""):
   self.descricao = descricao
   self.monstro = monstro
   self.tesouro = tesouro
   self.cabineAcima = cabineAcima
   self.cabineAbaixo = cabineAbaixo
def cabines(self):
   print("Boas vindas jogador")

cabine1 = cabine("eh uma cabine bem iluminada", "nao tem", "poucas moedas") cabine2 = cabine("eh uma cabine sombria, sem janela", "Um pirata!", "muitas moedas") cabine3 = cabine("eh uma cabine labirintica", "goblins, muitos sacanas", "muitas moedas, com barras de ouro em")

cabine1.cabineAbaixo = cabine2 #cabine1.cabineMeio = cabine1 cabine1.cabineAcima = cabine3

cabine3.cabineAbaixo = cabine1 cabine2.cabineAcima = cabine1

cabine1.cabines()

cabineAtual = cabine1

print("descricao, monstro, tesouro, cabineAcima, cabineAbaixo") inpt = "" while( inpt !="q"): print(cabineAtual.descricao) inpt = input("para onde queres ir? cima ou baixo?\n") if( inpt =="cima"): cabineAtual = cabineAtual.cabineAcima elif( inpt =="baixo"): cabineAtual = cabineAtual.cabineAbaixo

trabalho_luigi's People

Contributors

luigi-marioverde avatar franko12345 avatar leohmoraes avatar

Watchers

James Cloos avatar

Forkers

leohmoraes

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.