Skip to content

One "game" ;) #30

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 99 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,103 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite
# Created by https://www.gitignore.io/api/vim,node,macos

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# OS generated files #
######################
.DS_Store
.DS_Store?
# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
ehthumbs.db
Thumbs.db
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env


### Vim ###
# swap
.sw[a-p]
.*.sw[a-p]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags

# End of https://www.gitignore.io/api/vim,node,macos
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
### `GameInterface` interface
* **Description:**
* Represents a game which handles some type of player.
* should implement `Runnable`
* should be parameterized with a generic type whose upper bound is `PlayerInterface` that enforces the types of players this game can interact with.
* `GameInterface` should enforce an aspect of
* should be parameterized with a generic type whose upper bound is `PlayerInterface`.
* e.g. - `SomePlayerType` is a subclass of `PlayerInterface`.
* This restricts the types of players this game can interact with.
* `GameInterface` should declare each of the following methods:
* `TypeOfPlayer[] getPlayers()`
* `TypeOfPlayer getPlayer(Long playerId)`
* `void addPlayer(TypeOfPlayer player)`
Expand All @@ -50,7 +51,7 @@

### `GameEngineInterface` interface
* **Description:**
* `GameEngineInterface` is a contract which ensures all `GameEngine` can perform basic `GameEngine` operations.
* `GameEngineInterface` is a contract which ensures a specific type of `GameEngine` operates on a specific type of `Player` and a specific type of `Game`

* should be parameterized with two generic types
* `GameTypePlayer` a sub class of `PlayerInterface`
Expand Down
Loading