-
Notifications
You must be signed in to change notification settings - Fork 8
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 bingeboard #68
Add bingeboard #68
Conversation
Let me know if you feel like I should be tracking any other stats in turn-time. |
nethack_server/src/db_pgsql.c
Outdated
attrib_int_str, attrib_wis_str, attrib_dex_str, attrib_con_str, | ||
attrib_cha_str, score_str | ||
}; | ||
const int paramFormats[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const int paramFormats[] = { 0 };
is a better way to initialize this to 0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, fixed.
nethack_server/src/db_pgsql.c
Outdated
attrib_int_str, attrib_wis_str, attrib_dex_str, attrib_con_str, | ||
attrib_cha_str, score_str | ||
}; | ||
const int paramFormats[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use = { 0 }
here too
Adds the bingeboard table to the database. This table stores stats about the player that are updated on each turn. A working example of this being utilized is at https://binge.csh.rit.edu This example provided by: https://github.com/liam-middlebrook/bingehack4-binge-api https://github.com/liam-middlebrook/bingehack4-bingeboard-web
13e455d
to
6caf7a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks fine to me
Adds the bingeboard table to the database.
This table stores stats about the player that are updated on each turn.
A working example of this being utilized is at https://binge.csh.rit.edu
This example provided by:
https://github.com/liam-middlebrook/bingehack4-binge-api
https://github.com/liam-middlebrook/bingehack4-bingeboard-web
Once this is merged I'll transfer ownership of the two repos listed above to ComputerScienceHouse's GitHub organization so it's "official"
I already have this running on bingehack prod, but I figure it's better to get review before officially merging it in.
Fixes #43