Problem 773. TRON Tourney 010: Fixed Pattern CCW

TRON Tournament is based upon the excellent TRON Challenge, Cody 327, created by Alfonso Nieto-Castanon.

Host Bot: Fixed Pattern CCW - Weak

The Passing criteria is changed to Wins - Ties/4 > Losses.

The 100 Matches will be "even" as Host and Player will play the same 50 paired starting positions.

The Host TRON-bot will be provided in the function template. It is highly recommend to run the initial TRON bot so that the player can copy the Test Suite for his bot creation. The Test Suite code has beautiful graphics created by Alfonso.

The TRON arena is fixed at 50x50.

Please visit the Cody 327 link for any info I may miss.

Board: 50x50

Wall: -3 (Rows 1 and 50, Columns 1 and 50)

Player: 1

Host: 2

Player created wall: -1

Host created wall: -2

Empty Spaces: 0

Players start on either row 2 or column 2

Players move simultaneously and thus a crash to the same spot is a tie.

Running into a wall first is a loss.

Simultaneous wall crashing is a tie.

Given the board with its coverage make a Move, "NESW".

"N" idx-1; "E" idx+50, "S" idx+1, and "W" is idx-50.

Input: Board

Output: (string 1 character) eg "N"

Score: Perfect Score is 0 points (200-Wins*2-Ties/2), 100 L scores 200

The Test Suite has some very nice methods to implement checks.

Bot 010 is Rick's CCW Fixed Pattern Bot - Weak

Solution Stats

62.5% Correct | 37.5% Incorrect
Last Solution submitted on Mar 08, 2021

Solution Comments

Show comments

Problem Recent Solvers5

Suggested Problems

More from this Author296

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!