@ChristianFrantz they are both nice, but git will teach you better habits, and git is much more robust when it comes to recovering something in an emergency
All I wanted was a program where I could save my project every day after I was done and if I needed to look back at a previous version I could do that easily. There have been many times where I deleted a whole function or class that I needed but forgot how I wrote it
Just take a for loop, loop through the character array starting at str.length() and counting down and add them to a new char array, then convert to string :)
one time, for class, my prof wanted us to use tortoise. I gave it about 15 minutes, then just gave up. it was some shitty SVN server that I could just log into and browse the folders, so I just copy/pasted everything to the server manually.
Is there any disadvantage to using the keyword "is' rather than comparing a string to another string? so like if(stuff[i] is paper) do... rather than if(stuff[i].name == "paper")
sigh the answers some people pick to questions... mine was by far and away more correct since the demo code the OP posted was like at least 5 years out of date and once you boiled out all the outdated crap from a programmer that didn't know C#, the entire method boiled down to 2 lines of code
no matter -- just another idiot copying code without any understanding
This is a follow-up to Array-like container for uints shorter than 8 bits
In short: The PackedBitfieldArray should be a kind of container for packed (unsigned) ints shorter than 8 bits. It provides proxy objects for manipulation and iterators.
What I have changed:
PackedBitfieldArray::end() n...
@Christoph For me: Too busy dealing with GamerGate and associated fallout outside of SE. Last weeks were busy trying to get 4chan to not explode, now that moot himself seem to be content with open war breaking out, I'm mostly recuperating and making sure to stay away from the more militant 4channers.
yes, and that's the expected answer most of the time
but I should have specified that I'm trying to build a framework where to build cardgames on top, rather than an specific one where the phases are known beforehand
specific *ruleset/game
the idea came from that Hearthstore AI talk on gamasutra, where they mentioned this approach that also allowed them to create gamemodes on the fly
That, and a card game with the common deck of cards is a completely different beast from a card game like hearthstone/whatever. I don't think many of them would easily support comparisons like "Is this card one less in value but of the same suit"
I particularly like card like the MtG "Graphic Violence" one, since they remind you as game designer to allow for filters/triggers/comparisons with everything.
(Ok, it's from Unhinged, so that kind of craziness is to be expected ;))
Basically MTGO is really buggy. I've not used it myself so I'm not sure how bad it is, but they take an extremely long time to fix bugs because changing anything immediately breaks a bunch of other things.
... and the MtG crowd being the autistic (in a good sense!) crowd that it is, they obviously spot (and exploit, I guess) most of the bugs within hours.
@TimB Yep, it's primarily a way for them to get more players into the other versions (MTGO & paper). I imagine the restricted card pool greatly reduces bug-sensitivity as well.
the amount of time I have spent fixing shit that wasn't planned well is ridiculous
I'm doing a 2 week refactor of an achievement system right now because the original was so bad, it couldn't even be patched.
since I'm doing the refactor, the mandate widened to make it a generic system other projects can use, but it still would have been postponed to another project if we didn't need it working now
Running over the construction workers is much more fun :)
seriously -- I've been doing a lot of planning for this engine we are working on, but at this stage I'm keeping it pretty general except in the few places where I have knowledge of potential implementation strategies from other engines... deep planning doesn't happen until about 5 minutes before I start typing :)