diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..53c83987d --- /dev/null +++ b/.gitignore @@ -0,0 +1,106 @@ +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet + +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/** +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +# Gradle: +.idea/**/gradle.xml +.idea/**/libraries +.idea/* +*.iml + +# CMake +cmake-build-debug/ + +# Mongo Explorer plugin: +.idea/**/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +target/* + +.project +.classpath +.settings diff --git a/README.md b/README.md new file mode 100644 index 000000000..3e258ece3 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# ZCW-Casino +* Objective: + * To create a casino simulation. + +## Minimum Viable Product (MVP) +* Your application must have at the very least 3 games: + * Go Fish a card game + * BlackJack a card game + * Craps a dice game + +## Specs +* The project should include some concept of + * `Player` class + * `Player` objects should be created upon input from a user. + * `Game` interface + * Contract which ensures that a class enforces some aspect of _playing_. + * `Gamble` interface + * Contract which ensures that a class enforces some aspect of _waging money_. + + + +## Developmental Notes +* Go fish is a friendly game and should not involve gambling. +* `BlackJack` and `GoFish` are both Card Games and should therefore inherit from a common `CardGame`. +* Any common logic or fields between the games should live CardGame class, **not** BlackJack **nor** GoFish. +* You must have a completed and approved UML diagram before you proceed to do any development +* All public methods should be tested. diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..c6ec0cc8b --- /dev/null +++ b/pom.xml @@ -0,0 +1,19 @@ + + + 4.0.0 + + io.zipcoder + casino + 1.0-SNAPSHOT + + + + junit + junit + 4.12 + test + + + diff --git a/src/main/java/io/zipcoder/casino/Casino.java b/src/main/java/io/zipcoder/casino/Casino.java new file mode 100644 index 000000000..78aa54655 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Casino.java @@ -0,0 +1,8 @@ +package io.zipcoder.casino; + + +public class Casino { + public static void main(String[] args) { + + } +} diff --git a/src/test/java/io/zipcoder/casino/CasinoTest.java b/src/test/java/io/zipcoder/casino/CasinoTest.java new file mode 100644 index 000000000..e92865236 --- /dev/null +++ b/src/test/java/io/zipcoder/casino/CasinoTest.java @@ -0,0 +1,5 @@ +package io.zipcoder.casino; + + +public class CasinoTest { +}