Skip to main content
Commonmark migration
Source Link

Introduction

#Introduction HexHex is a strategy board game played on a hexagonal grid, theoretically of any size and several possible shapes, but traditionally as an 11×11 rhombus. Other popular dimensions are 13×13 and 19×19 as a result of the game's relationship to the older game of Go. According to the book A Beautiful Mind, John Nash (one of the game's inventors) advocated 14×14 as the optimal size.

5x5 Hexboard, Blue wins

Game Rules

#Game Rules EachEach player has an allocated color, conventionally Red and Blue or White and Black. Players take turns placing a stone of their color on a single cell within the overall playing board. The goal for each player is to form a connected path of their own stones linking the opposing sides of the board marked by their colors, before their opponent connects his or her sides in a similar fashion. The first player to complete his or her connection wins the game. The four corner hexagons each belong to both adjacent sides.

#Coding Rules

Coding Rules

  1. You may use any program or language. Do not use any third party libraries or modules (full or in part) that implements the same game. The rest are fine.
  2. Players are computer and user.
  3. You may choose the size of the grid.
  4. You may use either CLI or GUI for output (see points).
  5. Your code should not exceed 5120 bytes.

#Points

Points

  • +(5120 - bytes) / 100 golfing points
  • +50 points for making GUI
  • +50 for two player mode
  • +75 for best-move-prediction#
  • +50 for undo-move

# Tell the user, if they wish, their next best move.

#Super bot challenge

Super bot challenge

  • +150 points if your bot is undefeatable. Add this points ONLY IF you are absolutely certain of your bot's 100% winning capability. If any user defeats your bot and reports it all your points will be taken away (zero points). The person reporting this must either post a screenshot or input sequences based on the implementation of game. They will be awarded +150 points, if they have posted an answer.

#Introduction Hex is a strategy board game played on a hexagonal grid, theoretically of any size and several possible shapes, but traditionally as an 11×11 rhombus. Other popular dimensions are 13×13 and 19×19 as a result of the game's relationship to the older game of Go. According to the book A Beautiful Mind, John Nash (one of the game's inventors) advocated 14×14 as the optimal size.

5x5 Hexboard, Blue wins

#Game Rules Each player has an allocated color, conventionally Red and Blue or White and Black. Players take turns placing a stone of their color on a single cell within the overall playing board. The goal for each player is to form a connected path of their own stones linking the opposing sides of the board marked by their colors, before their opponent connects his or her sides in a similar fashion. The first player to complete his or her connection wins the game. The four corner hexagons each belong to both adjacent sides.

#Coding Rules

  1. You may use any program or language. Do not use any third party libraries or modules (full or in part) that implements the same game. The rest are fine.
  2. Players are computer and user.
  3. You may choose the size of the grid.
  4. You may use either CLI or GUI for output (see points).
  5. Your code should not exceed 5120 bytes.

#Points

  • +(5120 - bytes) / 100 golfing points
  • +50 points for making GUI
  • +50 for two player mode
  • +75 for best-move-prediction#
  • +50 for undo-move

# Tell the user, if they wish, their next best move.

#Super bot challenge

  • +150 points if your bot is undefeatable. Add this points ONLY IF you are absolutely certain of your bot's 100% winning capability. If any user defeats your bot and reports it all your points will be taken away (zero points). The person reporting this must either post a screenshot or input sequences based on the implementation of game. They will be awarded +150 points, if they have posted an answer.

Introduction

Hex is a strategy board game played on a hexagonal grid, theoretically of any size and several possible shapes, but traditionally as an 11×11 rhombus. Other popular dimensions are 13×13 and 19×19 as a result of the game's relationship to the older game of Go. According to the book A Beautiful Mind, John Nash (one of the game's inventors) advocated 14×14 as the optimal size.

5x5 Hexboard, Blue wins

Game Rules

Each player has an allocated color, conventionally Red and Blue or White and Black. Players take turns placing a stone of their color on a single cell within the overall playing board. The goal for each player is to form a connected path of their own stones linking the opposing sides of the board marked by their colors, before their opponent connects his or her sides in a similar fashion. The first player to complete his or her connection wins the game. The four corner hexagons each belong to both adjacent sides.

Coding Rules

  1. You may use any program or language. Do not use any third party libraries or modules (full or in part) that implements the same game. The rest are fine.
  2. Players are computer and user.
  3. You may choose the size of the grid.
  4. You may use either CLI or GUI for output (see points).
  5. Your code should not exceed 5120 bytes.

Points

  • +(5120 - bytes) / 100 golfing points
  • +50 points for making GUI
  • +50 for two player mode
  • +75 for best-move-prediction#
  • +50 for undo-move

# Tell the user, if they wish, their next best move.

Super bot challenge

  • +150 points if your bot is undefeatable. Add this points ONLY IF you are absolutely certain of your bot's 100% winning capability. If any user defeats your bot and reports it all your points will be taken away (zero points). The person reporting this must either post a screenshot or input sequences based on the implementation of game. They will be awarded +150 points, if they have posted an answer.
Tweeted twitter.com/#!/StackCodeGolf/status/607014300641857536
edited tags
Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975
Source Link
Renae Lider
  • 1.5k
  • 1
  • 15
  • 19

Coding hex board game

#Introduction Hex is a strategy board game played on a hexagonal grid, theoretically of any size and several possible shapes, but traditionally as an 11×11 rhombus. Other popular dimensions are 13×13 and 19×19 as a result of the game's relationship to the older game of Go. According to the book A Beautiful Mind, John Nash (one of the game's inventors) advocated 14×14 as the optimal size.

5x5 Hexboard, Blue wins

#Game Rules Each player has an allocated color, conventionally Red and Blue or White and Black. Players take turns placing a stone of their color on a single cell within the overall playing board. The goal for each player is to form a connected path of their own stones linking the opposing sides of the board marked by their colors, before their opponent connects his or her sides in a similar fashion. The first player to complete his or her connection wins the game. The four corner hexagons each belong to both adjacent sides.

#Coding Rules

  1. You may use any program or language. Do not use any third party libraries or modules (full or in part) that implements the same game. The rest are fine.
  2. Players are computer and user.
  3. You may choose the size of the grid.
  4. You may use either CLI or GUI for output (see points).
  5. Your code should not exceed 5120 bytes.

#Points

  • +(5120 - bytes) / 100 golfing points
  • +50 points for making GUI
  • +50 for two player mode
  • +75 for best-move-prediction#
  • +50 for undo-move

# Tell the user, if they wish, their next best move.

#Super bot challenge

  • +150 points if your bot is undefeatable. Add this points ONLY IF you are absolutely certain of your bot's 100% winning capability. If any user defeats your bot and reports it all your points will be taken away (zero points). The person reporting this must either post a screenshot or input sequences based on the implementation of game. They will be awarded +150 points, if they have posted an answer.