These are chat archives for anderspitman/dice-game

12th
Apr 2016
Hannah Van Den Bosch
@mshannahnv
Apr 12 2016 00:55
Going over the build documentation
The only way I got it to work in Windows CMD is by typing gradlew :cli:run instead of gradle.bat :cli:run
Hannah Van Den Bosch
@mshannahnv
Apr 12 2016 01:24
Please review #47
@hehe876 or @sarahka7 - have you guys ran the CLI using gradle. If not, do you want to test building the CLI in cygwin using the Linux instructions, to confirm it works. That would be awesome!
all you have to do is use cygwin, go to dice-game directory, and then ./gradlew :cli:run
Anders Pitman
@anderspitman
Apr 12 2016 01:44
I wouldn't expect gradle.bat :cli:run to ever work. Sorry if I ever told you to run that
Anders Pitman
@anderspitman
Apr 12 2016 01:49
I just emailed Corey
Merged #47, nice catch
@hehe876 did you ever have any luck getting the GUI to build without netbeans? If you have any extra cycles to look into that it would be helpful. If not I'll try to get to it after I get some more of the new backend stuff into place.
Anders Pitman
@anderspitman
Apr 12 2016 06:30
Need someone to review #48. @mshannahnv would you mind, since I changed a little bit of the CLI code? The interface to RollResult is pretty straight forward. Refer to the unit tests and CLI code for examples
Anders Pitman
@anderspitman
Apr 12 2016 06:36
@hehe876 can you put the latest version of the code you're using to build the GUI in a PR or something so I can work on building it with gradle?
Anders Pitman
@anderspitman
Apr 12 2016 07:47
@hehe876 you were totally right, I forgot all the stats stuff we listed and I erased off the board. Can you guys help me rebuild the list? Here's what I have so far:
  • totalRolls
  • avgRollsPerGame
  • cumulativeScore
  • avgScore
  • avgNumDiceUsed
  • ...
I've gotten a start on the stats stuff. Take a look at #49 if you want to get an idea of where I'm going with it. Basically all you guys will have to do for the UI's is call StatsProcessor.create() which will give you a StatsProcessor object that you can use. As of now it will return a MockStatsProcessor, which will basically return dummy data you guys can test the UI against. Once @chcschmid and I are dont with the backend, we'll turn a key and it'll start using the real database.
Anders Pitman
@anderspitman
Apr 12 2016 07:52
StatsProcessor will have methods like getPlayerList and getPlayerStats(String playerName). getPlayerStats returns a StatsData object, which has methods like getTotalRolls, getAvgRollsPerGame, etc.
Hannah Van Den Bosch
@mshannahnv
Apr 12 2016 16:22
@anderspitman #48 looks good
Hannah Van Den Bosch
@mshannahnv
Apr 12 2016 16:42
@anderspitman #49 looks good