Turn
Turn copied to clipboard
Refactor Player::AddToInventory
Current, Player::AddToInventory(vector<int> drops)
adds items to the player's inventory by checking drops[0] for the number of arrows to add, drops[1] for bombs, drops[2] for potions, etc.
We'd like to refactor this such that the method takes a vector of std::pair<ITEMTYPE, int>, where the first element in the pair is the type of the item to add and the second element in the pair is the amount to add.
I'd like to work on this.
Please assign this to me
I would like to work on this. I would like to know whether you have individual struct types for each of these or you want to be preprocessing strings. Either way, it is doable.
please assign this to me.
please assign this to me.
please assign this to me
hi tagniam i can't find build inside Turn folder neither in the repo nor after cloning...please help how to run the game so that i can understand the code in better way and make contributions
@pallavi-bits To run the game, after cloning the repo, follow the build instructions given in the README.md
. That will create a build folder in which you'll find Turn.exe
I did but got this error-"CMake Error: The source directory "/home/pallavi/Turn/build" does not exist. Specify --help for usage, or press the help button on the CMake GUI."
@pallavi-bits did you get that message after running cmake -S . -B build
? if so, try updating your version of cmake?
Thanks @tagniam yes the issue was of outdated cmake..now its working good thanks