I hereby claim:
- I am zachpendleton on github.
- I am zachpendleton (https://keybase.io/zachpendleton) on keybase.
- I have a public key ASD-WNN8v9RQyQvfET9SF8Bp3anZGOAxAs14k__VXrFycwo
To claim this, I am signing this object:
| class Widget | |
| class << self | |
| protected | |
| def define_attribute(name) | |
| attr_accessor name | |
| end | |
| end | |
| define_attribute :name | |
| require "json" | |
| $stdin.sync = true | |
| $stdout.sync = true | |
| loop do | |
| game_state = JSON.parse(gets) | |
| row_height = game_state["board"].length | |
| column_width = game_state["board"][0].length | |
| import com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import java.io.*; | |
| class ConnectFourBot { | |
| private static final ObjectMapper mapper = new ObjectMapper(); | |
| public static void main(String[] args) { | |
| new ConnectFourBot().play(); | |
| } |
| process.stdin.setEncoding("UTF-8"); | |
| process.stdin.on("data", function(data) { | |
| var gameState = JSON.parse(data); | |
| if (gameState["winner"]) return; | |
| var rowCount = gameState['board'].length; | |
| var columnCount = gameState['board'][0].length; | |
| process.stdout.write(Math.floor(Math.random() * columnCount).toString() + "\n"); |
| FROM ruby:2.3-alpine | |
| COPY ./my_bot.rb /bot.rb | |
| CMD ruby /bot.rb |
| FROM java:8-jre-alpine | |
| COPY ./my-bot.jar /bot.jar | |
| CMD java -jar /bot.jar |
| FROM mhart/alpine-node:4.4.7 | |
| COPY ./myBot.js /bot.js | |
| CMD node /bot.js |
I hereby claim:
To claim this, I am signing this object:
| 8b5b831b616e6b52d767fda9bc2bece3ed215eb6,+ 7400 33596 | |
| a57aa7cf196bed3ae71ccc9c6caf1742b32e89c5,! 4068 | |
| 6f6b1ebc11e603338ff2236a9987dbc016f19862,! 4733 | |
| 420069bf77a9b7f6ad5a081549e5053f712b8685,+ 48080 19645 | |
| 2112b2e9c2014d076b871c8bb7702778e626035d,! 2852 | |
| 4b8a910453a91d2c73db2b6330992a2bada83e2a,/ 28269 40744 | |
| d5070aabb1c27ac80e4c6028d253e767b474ade6,! 188 | |
| e3186f2dbb2fc78f778ec34949504c1860c08af0,! 3833 | |
| 87c9fac35b35111fe3b34dda10dcfe1a16b4facd,* 18344 3157 | |
| 632cb9391c7494cf5309209b05a46f359c72d971,! 2906 |
| <configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.14.0.xsd"> | |
| <!-- Configure the database connection here --> | |
| <jdbc> | |
| <driver>oracle.jdbc.OracleDriver</driver> | |
| <url>jdbc:oracle:thin:@[your jdbc connection parameters]</url> | |
| <user>[your database user]</user> | |
| <password>[your database password]</password> | |
| <!-- You can also pass user/password and other JDBC properties in the optional properties tag: --> | |
| <properties> |