GithubHelp home page GithubHelp logo

pds2 / 20191-team-5 Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 5.52 MB

Repository of the practical project of PDS2 (Information Systems, UFMG), 2019/1

Rich Text Format 81.85% Makefile 0.15% C++ 15.81% C 0.02% HTML 0.20% JavaScript 1.59% CSS 0.38%
c-plus-plus ufmg sistemas-de-informacao pds2 2019-semester-1 pratice-project

20191-team-5's People

Contributors

huijari avatar jonastrindade avatar lucasarl13 avatar rofly avatar romulorafas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

20191-team-5's Issues

Changes.md

create and updating file with project's changes

Position

- self: bool
- index: int
+ Position(self: bool, index: int)
+ isSelf(): bool
+ getIndex(): int

Player

- life: int
- deck: stack<Card>
- hand: vector<Card>
- field: pair<optional<MonsterCard>>
+ Player()
+ drawCard(): void
+ reduceLife(by: int)
+ getLife(): int
+ getHand(): vector<Card>
+ getField(): pair<optional<MonsterCard>>

MonsterCard

- attack: int
- defense: int
- mode: Mode
+ MonsterCard(name: string, attack: int, defense: int)
+ toggleMode(): Mode
+ getAttack(): int
+ getDefense(): int
+ getMode(): Mode

Phase

Enum: Draw, Position, Summon, Battle, End

Makefile

write and update project's makefile.

Game

- players: pair<Player>
- turn: Turn
+ Game()
+ draw(): void
+ toggleMode(position: Position): void
+ summon(cardIndex: int, position: optional<Position>): void
+ attack(monster: Position, target: optional<Position>): void
+ endPhase(): void
+ getPlayers(): pair<Player>
+ getTurn(): Turn

DeckFactory

Populate array of cards, shuffle and then return the deck stack.
Use it on the Player constructor.

Target

Enum: NoTarget, Self, Opponent

Mode

Enum: Attack, Defense

MagicCard

- description: string
- attackDelta: int
- defenseDelta: int
- lifeDelta: int
- destroy: bool
- target: Target
+ MagicCard(...todas as propriedades)

Turn

- phase: Phase
- playerIndex: int
- summonedMonster: bool
- summonedMagic: bool
- attacked: pair<bool>
+ Turn(playerIndex: int)
+ endPhase(): void
+ getPhase(): Phase
+ getPlayerIndex(): int
+ hasSummonedMonster: bool
+ hasSummonedMagic: bool
+ hasAttacked(index: int): bool

Card

- name: string
+ Card(name: string)
+ apply(game: Game, position: optional<Position>): void
+ getName(): string
+ getTarget(): Target
+ getDescription(): string

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.