Discussions: AI Block Battle

Discussionpostsviews
Finals Hi dear coders, The dates for the AI Block Battle finals are known! We will start the lockdown on Sunday May 15, 23.59. As usual, the leaderboard ranks will be reset and you can not update your bot a...
32 3163
Strategies? Hello I have to admit that I'm not a good tetris player with my little bot already playing kinda better tetris than myself. I'm wondering how you tetris pro's think how a bot should behave to win the...
45 8343
AI Block Battle is out of Beta Dear coders, as of today, AI Block Battle is out of Beta, meaning that there will not be any more changes to the game, except for hotfixes. This also means that the code for the engine is now availab...
14 1910
Light Riders (new competition announcement) Hi devs! I'm happy to announce that next monday (May 1st) we're launching Light Riders on Riddles.io (our new platform). We'll be launching more new competitions on Riddles.io in the coming months.So...
0 83
Python numpy import error My python bot just recently started getting the following error: Traceback (most recent call last): (...) import numpy as np File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", lin...
3 509
Whats next ? What are you planning to do next? I'm going to try Ultimate tic tac toe. I will use C#. I would give another language a try like "Go" or "D", but I am not really into a big challenge at this point. S...
10 707
Strange situation with my Java bot I'm uploaded a new version of my bot. All ok. Compiled. Input. Match. Then I set it active and challenge other bot. Match has no result, i look on blue match window without any activity. Status my a...
7 381
My bot drops pieces in version that worked Message 'the piece is still loose in field..' is showed and then piece is dropped. The problem is that this happens in bot versions that worked properly ?!?
1 210
Please turn on the BlockBattle games again Since the BlockBattle finals on 29 May 2016, no games have been played. In earlier competitions it was good practice to turn on the games again after the finals, with a lower priority. This gives comp...
2 262
Kubisme - shared thoughts and code I more or less promised some people to share my thoughts and code after the finals. So here they are: Kubisme - shared thoughts and code And my favourite Game: TaroKong - Kubsime
5 543
Story and implementation of Hohol bot Background Hello everyone. I'd like to share with you a story of my bot. My name is Nikita Glashenko. I live in Samara, Russia. I am software developer, ACM ICPC 2013 finalist, 2nd place in Russian A...
7 1190
Bot performance statistics Some other interesting statistics: the next table shows for the current top 12 bots how many points they earn on average per 100 rounds, with a subdivision in how these points are earned. The last col...
6 564
Win probability statistics Now that the top 24 bots are known, it's time to start discussing who is going to win BlockBattle. Like in previous competitions, I'd like to share win probabilities with you. I estimated them based ...
24 1535
Holy variance, Batman! It looks like a week is not going to be nearly enough to let my bot settle into its actual place on the ladder.... Last night I went to bed in 7th place and about 15 hours later, I'm in 48th! This i...
20 1022
Final bot Strategies now that everyone is 'frozen' Since the competition is underway I was curious to hear some keys to peoples bots. My bot performed around the 1580 range and the code can be found here: https://gitlab.com/amsully/block-battle-amsul...
31 2043
Did anyone reverse engineer the randomizer in order to predict future pieces? I've come to realize that this is possible, and has been done on other Tetris games. Obviously, if a bot can predict what piece comes after the next piece, it's a tremendous advantage.
4 351
What if we combined our Tetris bots together? How good would a "voted" tetris bot be if we combined the top 25 bots and then asked each of them to return a move, then the move we choose to make is the move sequence that was returned by the majori...
4 339
"jailrun: execl(/bin/run_ai): No such file or directory" The last several matches my bot has played is giving this error. My bot is giving "no moves" each turn, yet the opposing player is still playing his moves. I haven't changed my version since before ye...
2 261
Some Ideas for a Tetris Heuristic When I was working on my bot I had some ideas that you guys may find interesting. With 2 weeks left maybe you might find some of this useful. I just wanna see if someone can improve their bot and take...
10 666
Some Implementation This is for a class, we are meant to post our code here. Please do not remove this post. https://gitlab.com/bambrose24/block-battle-python3
6 458
Simple algorithm to "hard drop" instead of "soft drop" at the end of a move sequence I've noticed that some top bots still don't make use of the "drop" command, so we have wait for their piece to slowly descend every move. If anyone is interested in making their bot "easier on the eye...
9 376
Using C# and XmlSerializer getting error in test input stage. I'm pretty sure this is the line that is causing thee issue XmlSerializer form3 = new XmlSerializer(typeof(NN)); Will i have to try and use some other serialize to avoid this exception? Error dump ...
5 323
Something veery wrong with server time management Please, look at this game http://theaigames.com/competitions/ai-block-battle/games/573247bf8be8df1c6115d4fe Both players exhaust their time. For me it happens always. I have some heuristic to avoid s...
10 325
my implementation final version lokibasic v 17. https://gitlab.com/pcarron2/blockBattle
2 355
My Implementation My implementation of an AIBlockBattle bot. https://gitlab.com/mbrooks93/blockbattle
1 354
UMass bots! Hi all, here's the code for my bot! https://gitlab.com/joekelley/ai-final
0 348
Peters Implementation https://gitlab.com/peterjm3/battle-blocks-ai.git Only compliments are welcome. :)
0 344
My Implementation https://gitlab.com/Cheyans/block-battle
0 330
An implementation https://gitlab.com/agiera/BlockbattleBot
1 336
My Experience: For Those who are Interested I competed in the Block Battle for my final project in an AI class I am taking at University. My bot, cartiernan, is programed in python3. It is not the most competitive bot by far, but it does have...
1 375
My bot: For those who are interested This bot was for my AI final project at University of Massachusetts Amherst. My bot will be uploaded on this link shortly after this post: https://gitlab.com/raymondzhu1/blockbattleAI Rotations were...
0 326
Possibility of Numpy? Just wondering if it would be possible to install the numpy package for python onto the game server? sudo apt-get install numpy should be sufficient on debian based systems or pip install numpy ...
11 814
Can't challenge other bots I get stuck at "Waiting for the game to b played". There is nothing in game log but I can't challenge another bot for 5 minutes anyway. According to game log, other bots were able to challenge me in p...
4 390
Challenging to a bot is not working Challenging to a bot is not working last 24 hours
0 285
timeout out of the blue Sometime suddenly my bot runs out of time, despite that my timebank is 10000. It mostly happen when my bot play two games simultaneously. For example when I challenge an opponent and the same time a r...
2 351
Does anybody here play Tetris Arena? There's a similar battle-tetris type game that is online called Tetris Arena. It's a multiplayer Tetris game that is free online and is similar to AI Block Battle. I started playing that a lot since s...
2 550
Downloading all games? Hi everyone! Is there a way to download all of my bot games? That would be very useful for testing, validating and training my bot! Right now I think I can only download one at a time, it would take ...
1 383
User interviews for the AI-Games Hi there! My name is Jarmal and I'm the new designer here at the AI-Games/Riddles. I'm currently looking for users (you guys) to interview for future improvements for the AI-Games/Riddles. I'm especia...
0 330
Tuning a Heuristic for Block Battle One hard part about this challenge is making your heuristic function good. There's two parts to this: deciding what features of the board to evaluate and deciding how much to weight each feature. I ...
5 718
Scala bot input test fails I'm sure this version has been working ok previously. Now I get this: Error dump Java HotSpot(TM) 64-Bit Server VM warning: No monotonic clock was available - timed services may be adversely affecte...
5 447
Java not found In the game BlockParty - artoppod, around 18 today: /bin/runai: 2: /bin/runai: ./java: not found It does not happen in all games; perhaps a configuration problem with one game server?
0 325
c# not working on server anymore Hi, here are some dumps from the last compilation & match attempts : Compilation Output: Error dump /usr/bin/dmcs: 2: exec: /usr/bin/mono: not found Match Output : Output from your bot: "It sho...
3 378
Final AI Block Battle update Hello dear coders, Today we made some final changes to the AI Block Battle competition that should make it more balanced in terms of strategy options, plus some additional functionality that will req...
62 3974
How to start Blockbattle Hi! I downloaded the block battle starterbot for python, together with the enige from Github. I import the starterbot in eclipse. I tried running it in my terminal via java -cp bin com.theaigames.bl...
3 579
Combo + Perfect Clear I want to clarify the rule regarding comb and perfect Clear. The rules state that combo is increased when a play score points in succession. But the game engine doesn't seem to increase the combo whe...
3 348
Win/lose ratios are not updated For a few days already this is not working properly. What about the final date? :DDD
0 394
Did you start from sratch or downloaded a ready tetris-base? Hi All, I'm amazed that the bots around 50. positions are so good. I expected bots with this knowledge to appear around 10-15. positions. These bots (25% of all competitors including zombie bots) don...
8 668
Matches showcase Fuck that was close: http://theaigames.com/competitions/ai-block-battle/games/55d73fbb35ec1d06d15c9953
13 877
Solid lines adding inequality Look at the game http://theaigames.com/competitions/ai-block-battle/games/569cba054b5ab224455059bd There i got one line less or more than my opponent at the same round. At 67 round, for example, i ha...
1 431
Garbage lines adding inaccuracy Current match system adds garbage lines not symmetrically to both players. For example, it's first garbage line for left player with hole at 4th place. Later, right player will get his first garbage l...
5 452
I dont understand how the bot work. Hi everybody ! First, excuse my english, I'm Frensh ! So, I post this topic because I try to make a bot, but I have difficulties with that. I try to run my bot, to understand how it work, before cod...
5 676
Cannot upload new version Hello, I understant that I have quite a few versions already :) Bu I get this error when uploading zip file: Error dump cp: writing /opt/aigames/bots/player55ae8fb65d203c003e8b456fv398/src.zip': No...
9 409
JavaScript starterbot The simplest bot seems this, and also tried different variations of other JS starterbots, but keep getting the 'no output' error. What is missing here? /** * __main__ */ var readline = require(...
16 1031
Idea for new Block Battle variation Hello Everyone, I like the current block battle contest, but I have an idea for a variation on the concept: How about 1 tetrisgame where both players take turns dropping a block. You could add a pena...
0 326
Quick and easy way to make replays better to watch: 3x speed on "down" events It's a bit agonizing waiting for soft drop events. The gameplay speed would be much more uniform if its speed was increased.
0 280
Bug in checkTSpin() There is bug in engine function checkTSpin() for T-spin detection. // check if 3/4 corners of the matrix are Blocks in the field Cell[] corners = new Cell[4]; corners[0] = this.field.getC...
5 491
Rule clarification on combos The rules state that Singles aren't worth points. They also state that for combos, points are only given if at least 1 line is cleared and the counter is not reset. Say a bot clears a Double, and the...
1 383
Input test failed without any reasons It is strange, but my newer versions of Ganymede can't pass tests. And there no error output, just message about bot crash: Running testcase /opt/aigames/etc/testsblockbattle/testblockbattle.txt... T...
5 392
A tool for testing your bots Guys I wrote a tool for you to be easily able to test your bots. https://bitbucket.org/aecepoglu/tetris-engine/overview There are some issues I'm aware of but please feel free to report any you see ...
11 1195
Is there a plan to put visualizer on GitHub ? If so, I could run it locally.
1 447
How to develop bot on my PC locally in C# ? Please help me. I'm a new comer. I have downloaded the C# sample bot. But I don't know how to start the game engine. The environment is Win10 + VS2013. How can I start to develop my bot ?
4 479
Maximum size for a bot Hello, I was wondering what the maximum size is for a bot. I want to offload some calculations into a lookup table that my bot can use.
2 462
Input test failed: Couldn't access random source Hi, its the first time i'm trying to make a bot. I started with LithiumToast his c# starter-bot. Uploaded it without changes no problem, now with my code i get the following exception: Unhandled Exce...
0 393
C# bot seemingly... freezing? Hey, I've been working on a bot off of the C# starter bot sample. I'm pretty sure it is something I messed up because the sample on it's own works flawlessly (for a random bot anyways). The bot does...
15 1189
C# Starter Bot Hey, I created a starter bot for AI Block Battle in C#. It's logically equivalent to the Java starter bot. https://github.com/LithiumToast/AIBlockBattleBot Cheers.
6 1066
Python 3 As you may already know most of the Workstation oriented distribution (Ubuntu/Fedora/Debian) switched (or switching right now) to python 3, and python 3 is the default python installed. And the suppor...
12 847
Upload error on mac Hi, I'm new to here, and I'm trying to upload the C++ starter-bot. If I upload the zip downloaded from 'Getting Started', it works well. But if I unzip this file and compress it again, it'll get this ...
1 453
Crashing the test bot Hi! Usually when ones bot crashes it is ones own fault, but this might be different: When I upload my bot; my bot crashes on round 2 XOR the test bot crashes on round 1. With crash I mean "times out...
0 481
Feedback before beta finishes The beta phase soon ends so here is some last minute(?) feedback from my side. I think with the current system the point system is almost useless because almost the only thing that matters is downstac...
13 803
Is perfect clear counted when there are solid blocks on the field? Is perfect clear counted when there are some solid blocks and nothing more on the field? Or field should be completely empty?
2 398
Help starting How do I test my code for the tetris game? Also, which file do I start coding in?
1 439
Rules clarification Hey, I have two questions concerning the rules. 1) The game ends when blocks get pushed onto the -1 row but pieces are also spawned at -1. My question: Is there space above the -1 row for rotations? F...
3 402
How to get bot into matches I've uploaded my bot. It compiles, accepts the input and wins against the random bot match. I have then set it as active. But its been a day and I haven't seen it in a match, is there something i a...
2 456
What do we submit? If we have a bot, say, for the tetris game. Do we submit a class file? Jar file? Java file? If its a java file, then all our code must be in the one file, a little annoying but okay.
3 431
Compilation of C++ Bot fails Hey, I have a C++ bot with multiple source files. When trying to submit the bot I get an error such as "main.cpp:(.text.[...]]+0x1be): undefined reference to..." which seems to me like the server is o...
5 511
Computer system properties Hello, we're focusing on making our bot as good as possible, and we're wondering, what kind of computer will the bot run on? How much RAM can it use? Is it possible and reasonable to create multiple ...
1 420
Python [Errno 2] This question may look very silly for you. I downloaded the starter package for python, edited and it seems to work fine locally (I'm using Eclipse PyDev with python 2.7 on Windows 10), altough I'm on...
2 529
a different type of game (it's actually a bit of topic, but inspired by blocks :) Let's not play tetris! let's play construction! Thus, there're certain "cells" in the bucket that adds "bonus scores" if occupied by a bloc...
1 427
Dump as a file Is it possible to get the game input/output dump as a file, rather than an html page? The bigger page works slow in a browser (FF). The biggest interest is, definitely server instructions sent to the ...
7 686
0 436
No pieces displayed in safari When I try to watch a replay with safari-browser, then no pieces are displayed. I can see the background image, the player names, the next piece and the "left, right, drop"-commands below the field bu...
2 386
Problem in the game server? I submitted a version and failed to compile with this message, that seems like a problem in the server: Error dump cp: writing /opt/aigames/bots/player55abcaee5d203ca27f8b4567v27/src.zip': No space l...
2 409
Timeline for the competition I was wondering if anyone had any estimates for how long it will be in beta as well as how long to expect the actual competition will last. Thanks.
3 640
jailrun Go Anyone else see this in error output? jailrun: execl(/bin/run_ai): No such file or directory Suddenly every game gives me this error :(
1 421
Piece rotations I reverse engineered how the pieces rotate, here I share my code: create(ShapeType.I, new int[][] { { 0, 0, 0, 1, 0, 2, 0, 3}, {2, 2, 1, 2, 0, 2, -1, 2}}); create(ShapeType.J,...
17 1871
Python Bot fails input test I've downloaded the python starter bot from the "Getting Started" page. After I've modified the starter bot, I've zipped and uploaded it. Unfortunately, it always fails the input test. Locally it runs...
7 840
Java - Supported Libraries? What libraries are supported in Java? Can libraries be included in the source of individual bots?
3 472
Help me with the bot on C # I downloaded the language pack, but do not understand what to do next. What is the method of processing commands and how? Class Bot and method Run? But what action? Console.WriteLine ("left"); Cons...
1 442
Python error... I downloaded (and uploaded) the python startbot, and it worked fine, that is, it compiled and worked. I modified the source (added a real dumb strategy), made a zip file, uploaded and now I get an er...
2 622
Is figure types generation really random? Or more precise, is chance of generation of different figure type is equal? If yes, then in this game I have really rare situaton: http://theaigames.com/competitions/ai-block-battle/games/55c921f735ec...
5 477
Imbalance in the point system The previous point system was imbalanced because it overrated the combo points. I think the current point system is imbalanced because of the garbage lines. It is much more important to downstack than...
13 812
Blockbattle rules update Hello dear coders, As we had already announced from the start, we were planning on changing the game rules a bit to make the competition more interesting. We've read a lot of your feedback and the re...
50 3803
Save match data Instead of trying to implement something that could potentially look like cheating, is there a supported/known way of saving match data? Thanks!
5 562
About the rules page Hi. The rules somewhat unclear to me. 1 "The combo-counter goes up by 1 for every line removed in succession" But I see that this counter increased by one after every resultative round, no matter ho...
3 594
Python -- How to use the starter? I'm a complete noob when it comes to classes, but I know some basic AI techniques... so the starter bot is driving me crazy! Might someone find it in their heart to write a BasicStrategy for the Pytho...
4 675
Detecting collision when rotating a shape/piece So I'm trying to implement a path finding algorithm for the tetris pieces using breadth first search. When I restrict the bot to only try out left/right/down it works as desired, but when I add rotati...
8 533
Fortran starter bot Will there be a modern fortran compiler (such as gfortran - part of gcc) on the game machine? I would like to contribute a bot in Fortran 90/03 if so. :) (sudo apt-get install gfortran)
2 426
Is the system down? The ratings are not updated for maybe 5 hours, can we expect it to work today? Tomorrow?
1 404
Perfect clear bug I just played flgbot. On round 5, we both got perfect clears. However, only flgbot received 6 garbage rows. Presumably there's a bug when both players get a perfect clear. See http://theaigames.com/c...
2 421
Initialize Engine State Was wonder before this competition comes out of beta if I could request an engine command line argument allowing me to chooses the seed for the random generator used to pick shapes. I think this would...
1 490
3 399
Bug in T-spin points? In game http://theaigames.com/competitions/ai-block-battle/games/55c24a7e1c687b6be6ca3a56 round 7, BlockParty drops a T without rotating which clears 1 line, the combo is 1. It gets 7 points for this ...
7 528
Where is Real_Block ? i can't find him ... why ?
23 1289
Source code of the beta engine Is it possible to get the source code of the beta engine until the final version is available?
1 554
New visuals We're proud to present to you the visual update of AI Block Battle, it's a definite upgrade when compared to our old one. We hope you like it! I'm going to use your feedback about the game rules/poin...
9 806
Starterbots wanted We have starterbots available for a couple of different languages now, but we're looking to complete the list. If you're coding your bot in a language that does not have a starterbot yet, we would rea...
5 1016
Web UI: Link to leaderboard? When in the profile view, uploading a new revision of your bot (or watching a game from the gamelog view), you have to: 1) click AI logo 2) click block-battle header 3) click leaderboard/gamelog ...
2 533
C++ Starter Bot Has anyone went to the trouble of converting into a c++ bot. I am working through one, but I am so rusty with C++ that it is taking me a long time to make an elegant version for it. If anyone has we...
1 684
Problems with output reading (Java) Hello, when i started doing things a little bit more complicated, my bot sometimes didn't printed out anything, which led to the error "Cannot parse input: actions", because nothing was printed out a...
2 453
PHP Notices Is it possible to enable PHP notices as well as warnings and errors? I believe this would make debugging somewhat easier.
2 456
Test case access Hi, could we get access to the input test files? It would be helpful if I could test locally before uploading.
3 719
Challenging other bots broken? (19/07/15) When i click leaderboard and then try and challenge anyone on the leaderboard, it gives me a 404 error... EDIT: nvm. i realised that after you upload your bot you have to set an active version.
1 414
Some player2 updates are missing in test_blockbattle.txt I believe I found a bug in a test file. When the server is running: Running testcase /opt/aigames/etc/tests_blockbattle/test_blockbattle.txt... It doesn't send updates for player2 row_points an...
1 389
Haskell Starter Bot Hello, I wrote a starter bot in Haskell that I want to share. It parses all commands from the game engine and stores this information in a data structure "GameState". To implement an AI, a good start...
1 664
Beta of AI Block Battle now live Dear coders, As you have noticed, we have just released our latest competition: AI Block Battle! We are very exited about this one, because we think this is one of the most fun games, both to code an...
13 1724
Testing is it possible to run the gameplayer offline?
5 711
this_piece_position is sometimes in player instead of game Hello The doc says that this_piece_position is sent as update game this_piece_position i,i But sometimes the server will send it as a player property: update b this_piece_position i,i ...
1 473
Clojure bot Hi, I am trying to get started with an AI in Cljoure. For now, my bot is dumb and outputs "drop" after every input. Here is my code and my project.clj file: (defproject ai-games-tetris "0.1.0-SNAPSH...
5 659
Starting positions When receiving: update game this_piece_position i,i from the game engine, what coordinates does this refer to specifically? Is this the top left square from the shape matrices shown on 'The...
3 521
Scala starter bot Hi I migrated java bot into scala: http://www.filedropper.com/scalastarter But after upload it I got error Error dump Java HotSpot(TM) 64-Bit Server VM warning: No monotonic clock was available - ti...
5 770
javac: no source files Hello, not sure if anyone else is getting this, but I got the following error when trying to upload my bot. javac: no source files Usage: javac use -help for a list of possible options I was able t...
2 629
Opponent's field Hello, I noticed that my bot doesn't receive information of my opponent's field during games. In the input/output dump the opponent's field is same as my field every round. For example like this: up...
1 560
time_bank mispelled in Java starter code In the Java starter code the engine output for the timebank settings is spelled 'timebank', whereas in the specs it is spelled 'time_bank'. ETA: Welp, want to edit title. The java starter code seems ...
2 431
Stuck in compilation queue when uploading new bot before old bot finished compiling I uploaded a bot earlier today but right after clicking the upload button I realized I forgot to put a semicolon at the end of a statement, so I quickly did that and reuploaded the bot before the erro...
0 343
Basic Python Code Help Hi all, I've uploaded a very simple python snippet that is failing the ouput test. bot.py contains, # __main__ import sys while True: line = sys.stdin.readline().strip() if len(line) == 0: ...
7 909
Alternate C# Bot Here you can find my own version of a C# bot. Not too dissimilar from the existing one, but different nonetheless. I also added a tiny PowerShell script to automatically zip the files for uploading. T...
0 582
No output [ruby] Hi, I'm trying to get my super simple ruby bot to start. this is my code: loop do gets puts 'drop' end This is the response I get Response timed out (10000ms), let your bot return 'no_move...
1 476
Bot not participating in any live games I submitted a working version about 12 hours ago but it has not played any games, except the test match which worked fine. How long does it typically take until a new bot is included? Will the game st...
3 489
What version of Python does the compiler accept? I think the Python 2.x and 3.x handle standard input differently, so I was wondering which one we should use.
2 500
Question to developers: Will pieces be delivered in bags? I've played a "block game" very similar to this one before, with the same 7 pieces and basically the same rules. In that game the order the pieces are distributed in is determined by the following alg...
1 573
C++ debugging I have a simple bot that works fine locally. When I upload it though it doesn't work and I get this error dump: *** glibc detected *** /bin/run_ai: double free or corruption (fasttop): 0x000000000128...
1 654