-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
* Delete src directory * partire desde la pauta, mi tarea 1 estaba fea * test files added to project * name added to tests * testing equals and hashcode * basic tests for player * implemented equals canequal and hashcode * implemented past functionalities from player * new files created, for board * test created for board and trait zone made * cleaning before checkout * fixed interfaces before new branch * new branch? * new branch? * new branch with Game added * putCard declaration * added add to zones * hashcode for zones * canEqual and equals for zones * pasted setting for tests for zones * fixed cards with null value in tests for Equal * implemented add for Player.play() * Game error, trying to fix * game * now game handles adding cards to board * fix local error in intellij, regarding game * 46% * controller created * controller first draft, fixed notequals in player * 71% * made board and hand for the vista-controller * game plays, just need to implement effects * tests for zones * test expanse * Update README.md * tests for player, 59% of lines covered * tests for game, 68% of lines covered * new Traits * traits * minor changes * deleted traits for effects * effects implemented suspiciously * finished game, no tests * update: partida.nextRound() missing * board print improved * fixed WeatherEffect * game functioning allegedly * 58% of lines covered * 60% of lines covered * 64% of lines covered, commented out Exception s * 64% of lines covered? * 68% of lines covered, cards are 100% ready * 72% of lines covered * README.md * New name: gwemtg. Updated README.md * (desc 1) Update README.md * Update README.md? * Update README.md * comments for structure * created statestest * polished README.md * added spacing * todo.txt * made classes for effects * new name for vistacintroller, todo: split * added files for state pattern * new test file * making documentation for refuerzo moral and vinculo estrecho * mtgification of close combat cards * stateofgame * advancments in the state abstraction * play round part 1 * substractgems * mega tests???? * todo: states test * this.changeState * todo: for deadlineday * mtgification part 2: electric boogaloo * Update README.md: mana added to card description * Update README.md: mtg and wotc added to context * Update README.md * README.md: update in convention * changes by adding a plug in * atempt number 1 to add mana to the game * first fix for tests with mana added * markdown * README.md: minor changes * try and fail: update tests for mana * Detached6 into tarea-4 (#11) * switched to intellij: now i have a corrector * more mistakes corrected: in states and StateOfGame * more corrections in Estado and StateOfGame * killed deprecated parenthesis * added stuff to state package * last changes before mega super refactor * last last changes before mega super refactor: this time in the correct branch * mega super refactor: from gwent to gwemtg * cleaning after super mega refactor * setting files from ide * StateOfGame is the last red file * despair * despair pt2: looking in .sbt file * despair pt3: looking in .sbt file * despair pt3: commented things in StateOfGame and fixed other issues, then uncommented * despair pt5: renamed methods, unsuccessfully * despair done by now: had to use state instead of Estado * added mana to beforeeach in tests * quick fixes to tests * last fixes to tests before expanding * effects D: * effects sum progress * effects done, now gotta use a composite?? * 52% of lines tested * :C didnt undestood the composite patter in the context of effects and cards * 54% of lines covered * 58% of lines covered * 86% of lines covered, after killing VistaController.scala * 76% of lines covered?? added Estado, but lines decreaced * ??? sbt sadness * 84% * last commit: it covers 87% of lines, yet many documentation lines are counted as not covered
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#FileLock | ||
#Mon Aug 07 16:41:30 UTC 2023 | ||
server=localhost\:46063 | ||
hostName=localhost | ||
method=file | ||
id=189d0e007da4a84b4ae8ac187d80020c33c455dcbba |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.watcherExclude": { | ||
"**/target": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,59 @@ | ||
# Gwen't | ||
# GweMTG | ||
|
||
 | ||
## By | ||
|
||
This work is licensed under a | ||
[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/) | ||
HD (github.com/hugodiazroa) | ||
|
||
## Description | ||
|
||
Gwemt is a trading card game based upon Gwen from the Witcher series with "Magic the Gathering" themed cards. The game is played over a best-of-three series of rounds, as players unleash their hand by slinging spells and diverse units with special abilities. | ||
There are four types of cards: | ||
|
||
• Climate cards | ||
|
||
• Close combat unit cards | ||
|
||
• Ranged unit cards | ||
|
||
• Siege unit cards | ||
|
||
The game is played by two players. In this iteration of the development of the game the only implementaion of the code we will only cover the case of a match between a human and a robot ~todo: robot v robot~ | ||
|
||
Under this rules, the human player is the one who starts the game and the computer player is the one who responds to the human player's actions. The game is played in turns, where each player can play a card or pass. The first round players draw 10 cards, then 3 cards at the beginning of each round. ~The player who starts is always the human.~ | ||
|
||
A round ends when both players pass. The player who wins the round is the one who has the highest power. If both players have the same power, the round ends in a draw. The loser of a round starts the next round and loses a gem. | ||
|
||
If a player has zero or less gems, they lose the game. The winner is the one to finish a round being the only one to have not lost. In case of a draw, both players lose a gem and the player who started the previuos round starts the next again. In case, after a draw, all players have lost, the game ends in a draw. | ||
|
||
The game is played over a board which is divided into seven rows, | ||
|
||
Context | ||
------- | ||
• A shared row for weather cards | ||
|
||
• The melee row, for each player | ||
|
||
• The ranged row, for each player | ||
|
||
• The siege row, for each player | ||
|
||
Each player has a deck of cards which contains 25 cards. Each card has a name a converted mana cost and a description ~todo: change description to oracle "pattern"??~. Unit cards also have power. | ||
|
||
## How to run the game | ||
|
||
~The game runs on the console after excecuting the Controller object. The game is played by entering the number of the card you want to play. The game ends when one of the players wins two rounds and then the program excecuting ends.~ | ||
|
||
## State diagram | ||
|
||
 | ||
|
||
## Context | ||
|
||
This project's goal is to create a (simplified) clone of the | ||
[_Gwent_](https://www.playgwent.com/en)card game developed by [_CD PROJEKT RED_](https://cdprojektred.com/en/) | ||
[Gwent](https://www.playgwent.com/en/) card game developed by [_CD PROJEKT RED_](https://cdprojektred.com/en/) with some influence fron the original trading card game, Magic: the Gathering developed by [Wizards of the Coast](https://company.wizards.com/en) | ||
|
||
--- | ||
## License | ||
|
||
**The rest of the documentation is left for the users of this template to complete** | ||
![http://creative![Creative Commons logo]() | ||
commons.org/licenses/by/4.0/](https://i.creativecommons.org/l/by/4.0/88x31.png) | ||
|
||
This work is licensed under a | ||
[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/) |