Git Product home page Git Product logo

game-of-thrones-diplomacy's Introduction

Quick-and-dirty diplomacy map maker.

This program uses the excellent map from webdiplomacy,
and so falls under the same license it does.

Usage:

	The following sequence of commands in python:
		from map import *
		[commands]
		done()
	will write a file called 'out.png' in this directory.

	Run 'run.py' to see an example rendering.

Example command sequence:

	context(ENGLAND)
	fleet_move_failed('nth', 'bel')
	army_hold('yor')
	fleet_move('nor', 'nwy')
	set('nwy')
	destroy('nwy')

	context(ITALY)
	fleet_support_hold('iri', 'nao')
	fleet_support_hold('nao', 'iri')
	
All location and nation names can be found in 'data.py'.

List of commands:
	
	disable_symbols()
        do not draw arrows, etc

	context(NATION)
        set further commands to apply to NATION

	set(loc)
        mark a location as owned by a nation

	dislodge(loc)
        mark pending unit destruction/retreat
		another unit of a different nation may be present at the loc

	destroy(loc)
        mark a unit destroyed/disbanded at location
		used in conjunction with a move command with destination at loc
		another unit of a different nation may be present at the loc

	fleet_create(loc)
	fleet_hold(loc)
	fleet_move(loc, dest)
	fleet_retreat(loc, dest)
	fleet_move_failed(loc, dest)
	fleet_support_hold(loc, dest)
	fleet_support_move(loc, attacker, dest)
	fleet_convoy(loc, attacker, dest)

	army_create(loc)
	army_hold(loc)
	army_move(loc, dest)
	army_retreat(loc, dest)
	army_move_failed(loc, dest)
	army_support_hold(loc, dest)
	army_support_move(loc, attacker, dest)

game-of-thrones-diplomacy's People

Contributors

ericl 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.