Coder Social home page Coder Social logo

domination's Introduction

Summary

Domination

Strategy game like 'Risk' conquering countries for week 9 makeathon at Makers Academy

Code Climate Test Coverage

##Team Members

  • Chris Hadley
  • Simon Lange
  • Pavel Redics
  • Shan Hasan

Problem

Two player game with a map. Player should control countries with armies, be able to attack other countries, and be allocated extra armies based on territory controlled. Player wins when he controls all countries on the map

Languages/Platforms/Tools

Languages Technologies Testing Frameworks Misc
Ruby svg Rspec Trello
Javascript Sinatra
CSS Ajax/API

Solution

We decided to write the game logic in ruby on a Sinatra server, for speed and to give us better unit tests. We used a scalable vector graphics map from http://jvectormap.com/maps/world/europe The individual countries were set up as paths within a SVG container so couldn't be addressed directly from css - we updated them from a javascript call.

To do

  • Add code samples
  • run test
  • svg updates
  • image of map

The game is not currently fully implemented, but we do have a demonstration of attack with update of the svg map

  • convert country code lookup file to yaml - data folder
  • Allow proper game turns with sessions
  • Allocate extra armies to players at beginning of game and turn
  • Update attack method to give more sophisticated battles
  • Check for winner

Learning points

We wrote a lot of methods and code that wasn't used - be more rigorous on use of Trello Communicate what you are working on out of hours, to avoid duplication (use Hipchat) Next time show full user stories in trello titles Important to shut down discussion after 20 minutes and make a decision, even if by tossing a coin We wasted some time from not coordinating morning start times. Best to exclude java libraries from codeclimate score

domination's People

Contributors

chandley avatar langesi avatar pavlrd avatar shanhasan 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.