Coder Social home page Coder Social logo

autotechbattle's Introduction

ser316-assignment5

Screencast

https://youtu.be/s4S7KC4ZyJE

Design Patterns

I used the Startegy pattern to implement the attacks of the start-ups. I used the State pattern to implement the odd/even quarters. Within the odd quarters I used the strategy pattern to implement the possible choices the player has. I used the decorator pattern to implent evolutions of the start-ups. Each time an evolution happens a start-up gains stat bonus's and a new attack. I used the Singleton pattern to implement the GameLogic class.

Program Details

The program is designed as a single player game where the player controls a tech giant that owns start-ups.
Each odd quarter the player can choose to raise the market share of their start-ups or choose to catch a wild start up and add to their portfolio.
If the player choose to catch a new start-up then in the following even quarter they will battle a wild start-up. If they chose to raise their market share, then in the following even quarter they will do battle with another tech giant.
If the player wins the battle they will have the option of acquiring the defeated start-up.
When a tech giant has no more start-ups they are removed from the game.
In consideration of the graders time I made it so the program will automatically choose an option whenever a choice arises.
The choices the program makes are randomly generated and will differ from run to run.
I also raised the attack stat and lowered the max health in order for the battles to finish quickly. I also set some starts up to evolve upon winning the next battle so those events could be viewed in the output.

autotechbattle's People

Contributors

gjmooney avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.