Skip to main content
Notice removed Draw attention by CommunityBot
Bounty Ended with matteo_c's answer chosen by CommunityBot
added some suggested testcases by corvus_192 in the comments
Source Link

(right now I don't have test cases. I'm going to add some later!)

  1. This is code golf so shortest working code in bytes wins!

Test cases (based from comments, commas separate columns, semicolons separate rows):

Truthy:

"" rc,gc,bc,oc,pc,yc;rs,gs,bs,os,ps,ys;rf,gf,bf,of,pf,yf;rz,gz,bz,oz,pz,yz;rm,gm,bm,om,pm,ym;rr,gr,br,or,pr,yr 

Falsy:

rc,rs,rf,rz,rm,rr,rf rc,rs,rf,yc 

(right now I don't have test cases. I'm going to add some later!)

  1. This is code golf so shortest working code in bytes wins!
  1. This is so shortest working code in bytes wins!

Test cases (based from comments, commas separate columns, semicolons separate rows):

Truthy:

"" rc,gc,bc,oc,pc,yc;rs,gs,bs,os,ps,ys;rf,gf,bf,of,pf,yf;rz,gz,bz,oz,pz,yz;rm,gm,bm,om,pm,ym;rr,gr,br,or,pr,yr 

Falsy:

rc,rs,rf,rz,rm,rr,rf rc,rs,rf,yc 
Notice added Draw attention by Squareoot
Bounty Started worth 500 reputation by Squareoot
Tweeted twitter.com/StackCodeGolf/status/1594843164111605762
Rule change
Source Link
Squareoot
  • 163
  • 4
  • 14
  • each line (horizontal or vertical) of touching tiles must contain any distinct tile at most once and only tiles of different color and same shape OR tiles of different shape and same color!

  • every tile has to touch ar least one neighboring tile! No single/islands of tiles!

  • if different colored shapes go in the verticals, all the horizontal lines of the field have to be of 'different shape and same color'

  • (see example image below for understanding!!)

  • It's important to note that a valid game evolves around one start position. This means, any tile on the field has to touch any other tile through other tiles. There can't be single tiles or islands of tiles disconnected from the main starter island. So, any tile has to touch at least one other tile.

  • there are only 3 tiles of each color and shape in total. So there can't be, for example, 4 red square tiles or 4 green circles.

  • directions matter! At the start of the game, players decide (by placing the first row of tiles) which direction different colors of the same form go (horizontal or vertical). Same shape in different colors then automatically go in the other direction (vertical or horizontal). This won't be changed within a game. Example: when you start with a row of red tiles in the horizontal, you can't make a row of red tiles in a vertical line for the rest of the game.

  • each line (horizontal or vertical) of touching tiles must contain any distinct tile at most once and only tiles of different color and same shape OR tiles of different shape and same color!

  • every tile has to touch ar least one neighboring tile! No single/islands of tiles!

  • if different colored shapes go in the verticals, all the horizontal lines of the field have to be of 'different shape and same color'

  • (see example image below for understanding!!)

  • It's important to note that a valid game evolves around one start position. This means, any tile on the field has to touch any other tile through other tiles. There can't be single tiles or islands of tiles disconnected from the main starter island. So, any tile has to touch at least one other tile.

  • there are only 3 tiles of each color and shape in total. So there can't be, for example, 4 red square tiles or 4 green circles.

  • directions matter! At the start of the game, players decide (by placing the first row of tiles) which direction different colors of the same form go (horizontal or vertical). Same shape in different colors then automatically go in the other direction (vertical or horizontal). This won't be changed within a game. Example: when you start with a row of red tiles in the horizontal, you can't make a row of red tiles in a vertical line for the rest of the game.

  • each line (horizontal or vertical) of touching tiles must contain any distinct tile at most once and only tiles of different color and same shape OR tiles of different shape and same color!

  • every tile has to touch ar least one neighboring tile! No single/islands of tiles!

  • It's important to note that a valid game evolves around one start position. This means, any tile on the field has to touch any other tile through other tiles. There can't be single tiles or islands of tiles disconnected from the main starter island. So, any tile has to touch at least one other tile.

  • there are only 3 tiles of each color and shape in total. So there can't be, for example, 4 red square tiles or 4 green circles.

add [decision-problem] tag
Link
corvus_192
  • 5.9k
  • 16
  • 26
Loading
added 35 characters in body
Source Link
Squareoot
  • 163
  • 4
  • 14
Loading
Source Link
Squareoot
  • 163
  • 4
  • 14
Loading