- public void setStones(int n) {
- stones = n;
- if (stones <= 0) {
- stoneCounter.setText("No stones!");
- stoneCounter.setFillColor(0xff7777);
- }
- else if (stones == 1) {
- stoneCounter.setText("1 stone");
- stoneCounter.setFillColor(0xffbb77);
- }
- else {
- stoneCounter.setText(stones + " stones");
- }
+
+ // same-typed positional parameters… a disaster waiting to happen
+ void gameInit(int roadLength, int initialStones, long seed, long salt) {
+ sendInputLine(String.format("%d %d %d %d %d",
+ roadLength, initialStones, seed,
+ model.getMultiplier(), salt));