Skip to main content
Commonmark migration
Source Link

#The Board

The Board

#The Players

The Players

#Tools

Tools

#Assumptions

Assumptions

#Getting Started and Testing Instructions

Getting Started and Testing Instructions

#Scoreboard April 22, 2014

Scoreboard April 22, 2014

#Side Challenge - NoHOLD

Side Challenge - NoHOLD

#The Board

#The Players

#Tools

#Assumptions

#Getting Started and Testing Instructions

#Scoreboard April 22, 2014

#Side Challenge - NoHOLD

The Board

The Players

Tools

Assumptions

Getting Started and Testing Instructions

Scoreboard April 22, 2014

Side Challenge - NoHOLD

block comments so that the closing brace isn't commented
Source Link
// Optional code here
public class Wolf extends Animal {
    // Optional code here
    public Wolf() { super('W'); //* Optional code here */ }
    public Attack fight(char opponent) { //* Required code here. Must return an Attack. */ }
    public Move move() { //* Required code here. Must return a Move. */ }
    // Optional code here
}
// Optional code here
public class Wolf extends Animal {
    // Optional code here
    public Wolf() { super('W'); // Optional code here }
    public Attack fight(char opponent) { // Required code here. Must return an Attack. }
    public Move move() { // Required code here. Must return a Move. }
    // Optional code here
}
// Optional code here
public class Wolf extends Animal {
    // Optional code here
    public Wolf() { super('W'); /* Optional code here */ }
    public Attack fight(char opponent) { /* Required code here. Must return an Attack. */ }
    public Move move() { /* Required code here. Must return a Move. */ }
    // Optional code here
}
Clarify how empty tiles are represented
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
  • You are provided with a small map of your immediate surroundings in the following form.
    • char[][] surroundings A zero indexed, 3 by 3 matrix of characters that represent nearby animals. Empty tiles are represented by a space character (' '). You are at surroundings[1][1]. For example, to your right would be surroundings[1][2], and above you is surroundings[0][1]. Your surroundings are updated just before being asked to move, but may be out of date when asked to fight.
  • You may persist data between invocations of your Wolf, Move requests, and Attack requests. You may neither read from nor modify files created by another Wolf class.
  • You are provided with the size of the map in the following form
    • int MAP_SIZE
  • You are provided with a small map of your immediate surroundings in the following form.
    • char[][] surroundings A zero indexed, 3 by 3 matrix of characters that represent nearby animals. You are at surroundings[1][1]. For example, to your right would be surroundings[1][2], and above you is surroundings[0][1]. Your surroundings are updated just before being asked to move, but may be out of date when asked to fight.
  • You may persist data between invocations of your Wolf, Move requests, and Attack requests. You may neither read from nor modify files created by another Wolf class.
  • You are provided with the size of the map in the following form
    • int MAP_SIZE
  • You are provided with a small map of your immediate surroundings in the following form.
    • char[][] surroundings A zero indexed, 3 by 3 matrix of characters that represent nearby animals. Empty tiles are represented by a space character (' '). You are at surroundings[1][1]. For example, to your right would be surroundings[1][2], and above you is surroundings[0][1]. Your surroundings are updated just before being asked to move, but may be out of date when asked to fight.
  • You may persist data between invocations of your Wolf, Move requests, and Attack requests. You may neither read from nor modify files created by another Wolf class.
  • You are provided with the size of the map in the following form
    • int MAP_SIZE
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link
Loading
deleted 295 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
Added side challenge
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 199 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
Notice removed Reward existing answer by Geobits
Bounty Ended with Herjan's answer chosen by Geobits
edited body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 116 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 116 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 11 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
deleted 341 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 36 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 618 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
edited body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
added 113 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
Notice added Reward existing answer by Geobits
Bounty Started worth 100 reputation by Geobits
added 175 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading
Tweeted twitter.com/#!/StackCodeGolf/status/452175041153998848
added 30 characters in body
Source Link
Rainbolt
  • 6.4k
  • 6
  • 33
  • 62
Loading