Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api docs #26

Merged
merged 64 commits into from Jan 18, 2019
Merged

Api docs #26

merged 64 commits into from Jan 18, 2019

Conversation

thehabbos007
Copy link
Contributor

No description provided.

NicklasDancker and others added 30 commits January 15, 2019 16:54
Added getGameLogic() in Game class for easier testing 👌
Fixed startmoney if statement to check players previous field instead of current
Fixed test checking if players get money when passing Start field 👌
…ehashmaps

# Conflicts:
#	src/main/java/Model/Fields/CompanyField.java
#	src/main/java/Model/Fields/TaxField.java
…emovehashmaps

# Conflicts:
#	src/main/java/Model/GameLogic/NormalGameLogic.java
sets activePlayers previousField to its current field before executing chanceFieldAction to enable chancecards that pass start to give the player money. 👍
derudover så slår man en terning efter man er kommet uf af fængsel
men hvis man vælger "feeling Lucky" så står der "slå terning" selvom man ikke slår den, man bevæger sig med det man slog

løste problemet ved at lave en variabel navngivet Lucky som checkes hvis man slår 2 ens, og slås fra i diceController
Made bool isJail for MoveToCard that sends player to jail and added specific instructions to if statement for that card.
Made a constructor specific to MoveToCard jail cards
Switched the two jail MoveToCards to use the jail specific constructor for those cards
Fixed setPreviousField to be set to fieldId instead of activePlayers field. 👌
# Conflicts:
#	src/main/java/Controller/DiceController.java
#	src/main/java/Controller/GameController.java
- Corrected first two MoveToCard constructors to match the ones meant for moving to a specific field
- Changed MoveToCard from moving to nearest ferry, to be a copy of the other ferry card
Xephyz and others added 28 commits January 17, 2019 11:17
Corrected calculation error:
'=' changed to '+'
What a meme 👌

Co-Authored-By: flaremew <flaremew@users.noreply.github.com>
It's basically all just an OCD fix to the code.... I LOVE IT ❤️_❤️
- 'meme'ified some prices ( ͡° ͜ʖ ͡°)
- added CompanyFieldTest
- added CompanyFieldBankruptTest
CompanyField "Carslberg" no longer has the description "Coca Cola Bryggeriet", instead it says "Carlsberg Bryggeriet"
Also changed it's color to match CompanyField Tuborg's color
## Changes

- Increased size of PropertyField pricing array to match the size used in the game
- added ```PropertyFieldHouseTest()```
- added ```PropertyFieldHotelTest()```
…g ud

Gjort ved at lave en ny variabel i player som tæller op i "feelingLucky" i JailController. resetter når man kommer ud.
Changes:

- changed propFields hotel price from 9 to 10 (and fixed tests using this value)
- added ```.sellHouse()``` and ```.sellHotel()``` tests to ```PropertyFieldHouseTest()``` and ```PropertyFieldHotelTest()```
- added other "less-important" method tests within current tests
- changed constructor to public for ```ToJailField()```
- Added ```ToJailFieldTest()```
- Added a smol meme for ya boi Hackerman aka [@thehabbos007] 😘
- added test ```TaxFieldTest()```
- added pure codecoverage tests
	- ```getNameTest()```
	- ```getSubTextTest()```
	- ```getDescriptionTest()```
- emptied any subText and description strings containing any text
- removed terrible meme, you're welcome
- Added ```buyFieldPlayerIsOnTest()```
- Added ```getPlayerFieldTypeTest```
- Made ```GetPaidCard()``` public for easier testing
- Added ```getPaidCardTest1()```
- Added ```getPaidCardTest2()```
- Added two more players to ```testGame``` for better testing
# Conflicts:
#	src/main/java/Controller/GameController.java
#	src/main/java/Controller/JailController.java
#	src/test/java/Controller/JailControllerTest.java
@thehabbos007 thehabbos007 merged commit 2e16efc into master Jan 18, 2019
@codecov-io
Copy link

Codecov Report

Merging #26 into master will increase coverage by 13.96%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #26       +/-   ##
===========================================
+ Coverage   21.85%   35.82%   +13.96%     
===========================================
  Files          34       34               
  Lines         993     1139      +146     
  Branches      111      142       +31     
===========================================
+ Hits          217      408      +191     
+ Misses        764      707       -57     
- Partials       12       24       +12
Impacted Files Coverage Δ
src/main/java/Controller/Controller.java 0% <ø> (ø) ⬆️
src/main/java/Model/Fields/ToJailField.java 100% <ø> (+75%) ⬆️
src/main/java/Model/Fields/PropertyField.java 79.46% <ø> (+62.51%) ⬆️
src/main/java/Model/ChanceCards/GetPaidCard.java 80% <ø> (+61.81%) ⬆️
src/main/java/Model/Fields/StartField.java 60% <ø> (+26.66%) ⬆️
src/main/java/Model/ChanceCards/MoveToCard.java 56.41% <ø> (+15.66%) ⬆️
src/main/java/Model/ChanceCards/PayBankCard.java 37.5% <ø> (ø) ⬆️
src/main/java/View/GameGUIView.java 0% <ø> (ø) ⬆️
src/main/java/Controller/JailController.java 0% <ø> (ø) ⬆️
src/main/java/Model/Fields/JailField.java 62.5% <ø> (+12.5%) ⬆️
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e71892...f1bb29d. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants