Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wall information to HDP #70

Merged

Conversation

elbrujohalcon
Copy link
Member

Game descriptions provide no info about walls.
Remember this impacts:

  • Documentation
  • hdp tests
  • hdp handlers
  • spts_cli
  • spts_cli_greedy

@@ -129,6 +129,12 @@ Returns information on a single game.
Rounds => uint
InitialFood => uchar
MaxSerpents => uchar
Walls => NumWalls [Cell]
NumWalls => uint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would've used an unsigned short, since the rows and cols are uchars, the maximum amount of walls would be 255^2 (65536) while the max ushort is 65535. So unless we need to send a map where every tile is a wall, then a short is enough by definition.

HernanRivasAcosta added a commit that referenced this pull request Sep 4, 2015
@HernanRivasAcosta HernanRivasAcosta merged commit efd70a2 into master Sep 4, 2015
@elbrujohalcon elbrujohalcon deleted the elbrujohalcon.70.add_wall_information_to_hdp branch September 4, 2015 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants