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

La API de ZeroRobotics esta mal #2

Closed
angel-manuel opened this issue Sep 9, 2013 · 2 comments
Closed

La API de ZeroRobotics esta mal #2

angel-manuel opened this issue Sep 9, 2013 · 2 comments
Assignees
Labels

Comments

@angel-manuel
Copy link
Owner

En el Game Manuel aparecen como funciones:

void game::getHomeBase(int player, float homebase[3]);
int game::pelletsLeft();

pero tanto

pellets_left = game.pelletsLeft();

como

game.getHomeBase(0, our_homebase);
game.getHomeBase(1, their_homebase);

dan error como si no existiesen.

Abriré un tema en su foro de soporte y cuando lo arreglen introduciré las funciones en el código

@ghost ghost assigned angel-manuel Sep 9, 2013
@angel-manuel
Copy link
Owner Author

Ya he abierto un hilo en el foro de soporte: https://www.zerorobotics.org/web/zero-robotics/forum/-/message_boards/view_message/390555

@angel-manuel
Copy link
Owner Author

Solucionado.

pellets_left = game.pelletsLeft();

queda sustituido por

laser_shots_left = game.laserShotsRemaining();

y

game.getHomeBase(0, our_homebase);
game.getHomeBase(1, their_homebase);

se sustituye por los valores constantes del manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant