Skip to content

Instantly share code, notes, and snippets.

Produce Resource

Building settlements & cities produce resources. Resources are produced when any player does a dice roll. Whomever has a settlement or a city in the border of the dice number will receive the resource shown in the tile. Settlements produce 1 resource, cities produce 2 resources.

Rolling 7 & Robber

When a player rolls a 7, they get to place the robber on any tile they wish and steal 1 random card from any of the colors adjacent to that tile. Robber prevents gaining resource from the tile it is on.

Use Resources
{
"layoutstats": {
"textFontList": [
"sans-serif",
"'linux libertine'"
],
"textTopFont": "sans-serif",
"textTopFontColor": "#3366cc",
"textTopFontSize": "13px",
"textTopFontStyle": "sans-serif 13px #3366cc",
```
import lmdb
class Coords(object):
def __init__(self, dirname):
self.env = lmdb.open(dirname, map_size=1024*1024*100)
def node_callback(self, nodes):
for osmid, tags, coords in nodes:
package com.developerb.dropwizard;
import com.yammer.dropwizard.AbstractService;
import com.yammer.dropwizard.Service;
import com.yammer.dropwizard.cli.Command;
import com.yammer.dropwizard.config.Configuration;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;