Search found 80 matches
- July 28th, 2020, 2:34 am
- Forum: Everything
- Topic: Problem with Git
- Replies: 10
- Views: 6293
Re: Problem with Git
GitHub Desktop master race
- June 2nd, 2020, 4:20 pm
- Forum: Everything
- Topic: Another gotcha in programming
- Replies: 4
- Views: 3290
Re: Another gotcha in programming
I got this one a few days ago as well. It bites me in the ass pretty often, I never learn my lesson. Worst part is that you get a garbage runtime error that doesn't explain anything.
My usual approach is your 3rd option (maybe done using factory function if applicable).
My usual approach is your 3rd option (maybe done using factory function if applicable).
- May 30th, 2020, 5:41 pm
- Forum: Everything
- Topic: Game Theory Simulation: Reciprocal Altruism Main Thread
- Replies: 5
- Views: 2492
Re: Game Theory Simulation: Reciprocal Altruism Main Thread
1. Sure, that works. I wouldn't stress about it too much since you can always come back and revisit the class if you realise something is missing. 2. You do need to use std::vector<Agent*>, the pointer is necessary to leverage polymorphism. You don't need to store the subclasses in separate vectors,...
- May 30th, 2020, 4:27 am
- Forum: Everything
- Topic: Who's up for a group challenge?
- Replies: 165
- Views: 74181
Re: Who's up for a group challenge?
I recommend trying to contribute to open source projects and understanding how their contribution/management system works, it'll give you some nice experience on working on a collaborative project with others who are a lot more experienced than you. Also when starting a project I think you can affor...
- May 28th, 2020, 3:27 pm
- Forum: Everything
- Topic: Game Theory Simulation: Reciprocal altruism: Issue
- Replies: 4
- Views: 2400
Re: Game Theory Simulation: Reciprocal altruism: Issue
Sorry, I missed the part about the Score branch. I had a look at your code on that branch and I found the issue: bool AlreadyNaughty = false; for (unsigned int i = 0; i < Naughtylist.size(); ++i) { if (Naughtylist[i] = agent) { AlreadyNaughty = true; } } if (AlreadyNaughty = false) { Naughtylist.pus...
- May 28th, 2020, 1:56 pm
- Forum: Everything
- Topic: Game Theory Simulation: Reciprocal altruism: Issue
- Replies: 4
- Views: 2400
Re: Game Theory Simulation: Reciprocal altruism: Issue
I cloned your project and tested this out and the Deflector seems to get added to the naughty list as expected. Something to note is that sine TFT is always added after Deflector, TFT will be the second candidate. In your screenshot debugging has stopped execution after the first candidate has been ...
- May 26th, 2020, 4:27 am
- Forum: Everything
- Topic: Discord
- Replies: 9
- Views: 5254
Re: Discord
I probably wouldn't link phone either, but patrons are exempt from this requirement B)
- May 23rd, 2020, 4:05 am
- Forum: Everything
- Topic: includes usage ?
- Replies: 6
- Views: 3092
Re: includes usage ?
ReSharper extension has that feature I believe
- May 22nd, 2020, 9:31 am
- Forum: Everything
- Topic: Discord
- Replies: 9
- Views: 5254
Re: Discord
Chili changed it intentionally to stop some bot spam attack. Asked him about it and he said that "phone verification is here to stay for the forseeable future".
- May 21st, 2020, 1:50 pm
- Forum: Everything
- Topic: map::emplace with multiple parameter constructor ?
- Replies: 12
- Views: 9222
Re: map::emplace with multiple parameter constructor ?
The pair itself is constructed in place, the thing in the pair is not. The A object in your scenario would be placed into the pair via move (or copy if a move doesn't exist). I doubt this is an expensive operation, and as I mentioned before if it is then you should store pointers and perform dynamic...