Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 42736

This challenge is related to the Java language. Note that challenges that require the answers to be in a specific language are generally discouraged.

1
vote
TrapBot, Java TrapBot.java import com.jatkin.splixkoth.ppcg.game.Direction; import com.jatkin.splixkoth.ppcg.game.SplixPlayer; import com.jatkin.splixkoth.ppcg.game.readonly.ReadOnlyBoard; import …
answered Jun 16 '17 by J Atkin
1
vote
random_bot, Clojure This is RandomBot, but I had to stick to naming conventions, and some issues prevent me from using the hyphen in the name, so underscores reign! The make-move fn returns a vec wit …
answered Jun 19 '17 by J Atkin
0
votes
HunterBot, Java HunterBot.java import com.jatkin.splixkoth.ppcg.game.Direction; import com.jatkin.splixkoth.ppcg.game.SplixPlayer; import com.jatkin.splixkoth.ppcg.game.readonly.HiddenPlayer …
answered Jun 16 '17 by J Atkin
37
votes
4answers
collections throughout the controller, but bots can be written using only the Java Collections library. Everything is packaged in an uberjar on the github releases page. To use it, download it and attach it … to your project so you can use it for auto-compleat (instructions for IntelliJ, Eclipse). To test your submissions, you run the jar with java -jar SplixKoTH-all.jar -d path\to\submissions\folder …
asked Jun 16 '17 by J Atkin
20
votes
12answers
https://en.wikipedia.org/wiki/Connect_Four Does anyone remember the 2 player game connect 4? For those who don't it was a 6x7 board that stands vertical on a surface. The goal of connect 4 is to, wel …
asked Dec 7 '15 by J Atkin
3
votes
BasicBlockBot A simple (and naive) block bot. He doesn't know you can make a 4 in a row horizontally or diagonally! static class BasicBlockBot extends Player { @Override int makeMove() { …
answered Dec 7 '15 by J Atkin
5
votes
OnePlayBot This bot has only one play - place its piece in the leftmost cell that is valid. Oddly enough it does pretty good ;) static class OnePlayBot extends Player { @Override int makeMov …
answered Dec 7 '15 by J Atkin
2
votes
BuggyBot A sample bot for you to beat (FYI: it's not hard ;) static class BuggyBot extends Player { @Override int makeMove() { return getBoardSize()[1] - 1; } }
answered Dec 7 '15 by J Atkin
3
votes
RandomBot Just put a piece anywhere that is valid. static class RandomBot extends Player { @Override int makeMove() { int attemptedMove = (int)Math.round(random() * getBoardSize()[0] …
answered Dec 7 '15 by J Atkin