Tag Info

Hot answers tagged

20

Everyone wants to make video games. It sounds awesome. This creates competition among prospects. The employers set the conditions of competition, which in this case has turned into a "who can take the most crap" competition.


15

In the enterprise world, an algorithm always functions the same way. I'll write a unit test for an algorithm, I'll expect the value 42 and it'll error if I don't get that value. This is not very different in games. The presence of two modes and multiple flags in the game you're working on doesn't change anything: if you take a specific mode with a ...


14

To expand on @gms8994's answer, it's well known that you get what you measure. In this case, achievements would be considered a type of measurement. So, unless those achievements in the IDE are perfectly suited for your business, you won't be getting what you really want from developers. Personally, I think the only measurement that should be applied to ...


14

This scenario of "nuclear apocalypse by inadvertence" would require some inordinate incompetence at some point. Namely, we can imagine a buggy router which mixes some packets together, and sends the wrong packet to the wrong destination. And then, inexplicably, the military system which receives the packet which, by a stroke of bad luck, contains what that ...


12

I wouldn't say it was the first. Core War at least has been around since 1984. Core War (or Core Wars) is a programming game in which two or more battle programs (called "warriors") compete for the control of the "Memory Array Redcode Simulator" virtual computer ("MARS"). These battle programs are written in an abstract assembly language called Redcode. At ...


10

"The best algorithm to achieve this"? Define "best". A simple A* algorithm will generate the most efficient possible path for an enemy to take to reach the player, but would you really want to play against a perfect computer? That's a recipe for frustration right there. The Pac-Man "AI" was actually 4 very simple algorithms that told the 4 ghosts where ...


9

Unit tests don't test gameplay. There's no programmatic criteria to see if a game is fun, or a level is the right difficulty. Unit tests will test that your roguelike mapgen actually produces a level with a stairs up and a stairs down. It will test that your encumberance rules are setup that your character actually moves slower when weighted. It will make ...


7

I personally disagree; one of the "achievements" was Every Option Considered – Created an enum with more than 30 values. I think people would write crappy code just to get the achievement. That makes life that much harder on the next schmuck who has to maintain it.


7

This is just a theory, but I think it is due to the compulsive nature of games and gamers. They love to play games for hours on end and they're creating a product that has a goal of the user being engaged as long as possible. My guess is people in the movie and music industry run into similar hours. Try to imagine someone who creates business software ...


6

The popularity come first from exposure: the Minecraft community isn't small and there is a non-insignificant subset of them that likes to mess around with specifics and technicalities and would see imlpementing the DCPU-16 emulator as a personal challenge. Second, it's a very compact specification geared towards easy implementation (*). I'd be able to ...


5

Games are written on a prospective basis - it is hoped that people will pay to play. Games don't make money until they hit the shelves - a delay in shipping can kill (and has killed) development companies or publishing companies. Games are surprisingly low-margin - the retail price is split between the retailer, the software company, the publishing company, ...


5

Short answer: No. Long answer: Nonononononononononono. No. IDEs cannot really gauge what is worthy of achievement: those things that make a programmer great. IDEs are slowly getting better at helping you identify bad code 'smells', but such functionality is in its infancy. Until IDEs can detect and suggest major project refactoring opportunities that ...


4

So there are several things that need to happen in order for such an event to occur: A game has to have a sequence of packets that match the protocol for say launching a nuclear missile (or the packets the game sends gets corrupted somehow to match the protocol) The packets have to be routed incorrectly to the server responsible for launching the nuke The ...


3

The basic approach is: Identify all the factors. Assign a weight to each factor. If the factor itself has a scale, assign a scaling formula (eg linear, log, capped, whatever) based on additional weights. If there are dependencies, express those as a formula based on additional weights. Add up all the resulting values. The problem now is that you have a ...


2

If the two Combatant instances and Weather object are notified as the result of the clock tick count being updated, and not by direct intervention by the Fight object, then it's the Observer pattern. If your Fight object triggers the notifications directly you can use the Command pattern to encapsulate the receivers or have the Fight object send messages ...


2

It is hard to write unit tests for code that is non-deterministic. If you have code involving random numbers, you won't be able to write a unit test that asserts an expected result. So, unit tests are more appropriate for the code that is deterministic. When I give a method these inputs, I expect these outputs. As an example: when a fighter with 15 strength ...


2

If you are talking about having one thread for every game character, you're going to have some synchronization issues. And you might start running into performance issues if you have many game characters, each requiring its own thread. If you really want to do things in parallel, you could do try to run multiple threads all performing the same task. For ...


1

There are many well documented vulnerabilities and attacks that use frames. OWASP has a good list of them here with examples: https://www.owasp.org/index.php/Cross_Frame_Scripting Generally, users should always be wary of any frame content especially Cross-Origin frames. Frames, including iframe, have undoubtedly been one of the largest vulnerabilities in ...


1

I should think a data mining approach would work, probably with a neural network to map inputs (user actions) to outputs (game win/ loose). Record many games and use these to train the neural net. At run time let this trained 'net decide what's important and produce a numeric measure, which you graph.


1

There are still some questions open regarding your game and your question. So, I put in small answers here to questions already arising from what you have given as information: Get your animations for your actions in the right schedule: Write a scheduler that starts animations with a given start-up time so that actions will have a smooth look. For example ...


1

Does anyone know about this theory and if it had a name? "Scare mongering", "B grade Hollywood movie plot", "Vested Interests" come to mind. has anything like this happened in software. The Ariane 5 rocket failure, and the AT&T long distance crash in 1990 were caused my something remotely similar to this - as far as both were caused by ...


1

It wouldn't be a stretch for the military to hire a game development company to work on something for them. I doubt they would start from scratch, so there would be similar code whether they knew it or not. The game could be designed to host its own shared game over the Internet and even reach out to other games. Of course they would exclude that feature ...


1

with for instance achievements that stimulate the use of best programming practises. Not so different from what StackOverflow is doing The silly point system is the single most annoying aspect of StackOverflow. (Even worse than using OpenID!) I would spend more time there and provide more answers if that was removed. I'm not against scoring answers, ...


1

Code Katas can be used as a coding game to help you write better code and practice your TDD. It has the upside of not being tied to a specific IDE, but it would be possible to integrate it into an IDE as a plug-in.



Only top voted, non community-wiki answers of a minimum length are eligible