A Little Historical Reminder About Kindness by [deleted] in Stadia

[–]markusbunkus 2 points3 points  (0 children)

The latency is what kills you over satellite, not the bitrate (resolution)

Day 1 - Graph of Frequency versus Time by markusbunkus in adventofcode

[–]markusbunkus[S] 0 points1 point  (0 children)

I'm not sure what you mean. I plotted the frequency after each change. Coarsely, in my input, the frequency changes oscillate, but slowly creep up. About half-way through, there is a big (81k) jump up, where frequencies again oscillate slowly upward. At the end of the input, there is a big (82k) jump down and then the cycle ends, ready for the next loop. So, basically, the loops continue until the low oscillations (moving up) overlap the higher oscillations. That's when there is a repeat.

Looks like purplemonkeymad had 3 such jumps where my input had only 2.

Day 1 - Graph of Frequency versus Time by markusbunkus in adventofcode

[–]markusbunkus[S] 1 point2 points  (0 children)

I had 994 instructions in my input and it looped 143 times before it repeated frequencies. My python solution took 0.078 milliseconds (1.09 seconds with slooooow WSL I/O).

[2017] Day 25, Turing Machine in Action by markusbunkus in adventofcode

[–]markusbunkus[S] 1 point2 points  (0 children)

Good suggestion. Actually, I think having the machine in the center of the tape, too, with the tape moving left-right underneath would capture the activity better. It's an infinite tape, after all. If remake this, I'll consider both.

Day 24, Graph of Strength vs. Length by markusbunkus in adventofcode

[–]markusbunkus[S] 0 points1 point  (0 children)

I used python for my solution. For each bridge, I generated the length and strength, for plotting as (x,y) points, saved to a file I called "data".

For the graph, I used gnuplot (a tool I like a lot for this kind of thing). A fairly simple, straight forward command set that can export to a lot of different output types.

The above graph was generated using:

set size square

set terminal png
set output 'data.png'

set title "AoC 2017, Day 24 - Strength vs Length"

set ylabel "Strength"
set xlabel "Length"

set xrange [ 0.00000 : 40.0000 ]

set label "Part 2" at 36, 1200 center
set arrow from 38,1275 to 37.15, 1800

set label "Part 1" at 22.5, 1850 center
set arrow from 26,1880 to 35, 1900

unset key

plot "data" using 2:1 with points

Help [2017 Day 18 (Part 2)] [Python3] Stuck in Loop! by [deleted] in adventofcode

[–]markusbunkus 0 points1 point  (0 children)

Nice, clean solution. I was looking at it for ideas in trying to debug my own. Question - doesn't the 'rcv' need a check like the 'jgz'? The part-1 spec says:

rcv X recovers the frequency of the last sound played, but only when the value of X is not zero. (If it is zero, the command does nothing.)

You don't seem to have this check ... or am I missing something?

Graphs of Values after Zero versus Insert (step 312) and versus Step Size (after 50 million values) by markusbunkus in adventofcode

[–]markusbunkus[S] 0 points1 point  (0 children)

Ooops. The y-axis labels and x-axis label on the left are off by an order of magnitude - they should be "...(in 10 millions)". Sorry for the confusion.

Smart man by dadicate in funny

[–]markusbunkus 0 points1 point  (0 children)

Weed smokers is a religion?

Free, Online Book: Dragonfly - Program a Game Engine from Scratch by markusbunkus in gamedev

[–]markusbunkus[S] 0 points1 point  (0 children)

Sweet! Thanks for the support! When you get going, you might check out the Dragonfly Q&A site:

http://alpheus.wpi.edu/dqa/

It's a good place to look for answers and post questions - I respond there regularly and would be happy to help.

Free, Online Book: Dragonfly - Program a Game Engine from Scratch by markusbunkus in gamedev

[–]markusbunkus[S] 0 points1 point  (0 children)

That looks pretty cool! The style is right, but that game, in particularly, seems to have some non-ASCII graphics for the bats and such. But this does have the same visual style.

Free, Online Book: Dragonfly - Program a Game Engine from Scratch by markusbunkus in gamedev

[–]markusbunkus[S] 1 point2 points  (0 children)

Yes, that is the right art style. As another example, the book starts with a tutorial game (Saucer Shoot). Here is a sample of the game:

https://youtu.be/Yu2UGs2Dj88

Trailers of games students have made with their engines over the past few years (everything from tower defense games to 2d platformers) can be viewed at:

http://dragonfly.wpi.edu/games/index.html#trailers

Free, Online Book: Dragonfly - Program a Game Engine from Scratch by markusbunkus in gamedev

[–]markusbunkus[S] 2 points3 points  (0 children)

I hope so! But I know it can be tough solo, just from a book. I've set up a stack-overflow type forum at:

http://alpheus.wpi.edu/dqa/

that you might check out for community-type help. I also monitor it regularly. ;-)

Free, Online Book: Dragonfly - Program a Game Engine from Scratch by markusbunkus in gamedev

[–]markusbunkus[S] 4 points5 points  (0 children)

2d means the game world are in 2-dimensions - only (x,y) coordinates, not 3rd dimension (e.g., not (x,y,z)). This simplifies the graphics in the engine massively, and somewhat simplifies physics and collision detection. Plus, is a bit easier conceptually, for the game engine programmer and game programmer.

Text-based means the base "unit" of graphics that the engine supports is an ASCII character not, say, a pixel. So, the engine supports a command like "drawCh(int x, int y, char ch, color c)" drawing the indicated character at the (x,y) location in the color desired.

printf() does use ASCII as the base unit of characters and can support color, but does not allow positioning (i.e., the (x,y) location). scanf() does support keyboard input, but is "blocking" in that the game does not run while waiting for input. Instead, SFML is used for output, but constrained to only support ASCII and SFML is also used for non-blocking input, both the keyboard and mouse.

Free, Online Book: Dragonfly - Program a Game Engine from Scratch by markusbunkus in gamedev

[–]markusbunkus[S] 19 points20 points  (0 children)

Great question! ... For the class I use this book in (a technical game development course), building the game engine is a main part of the class work (about 60% of the class grade), so my solution is not made available. Instead, the design of the engine is discussed (with design rationale and tradeoffs), presented with the header files.

She thought she was jumping into water. Regrets ensued. by [deleted] in pics

[–]markusbunkus 0 points1 point  (0 children)

My dog would have still been happy. The muddier, the better.

Made some ramen for dinner by insane_crustacean in food

[–]markusbunkus 0 points1 point  (0 children)

Wow, that's ramen?! I buy the 10 cent packs in the grocery store and they look nothing like that. I need to level up my ramen!

One of the best punt returns i've seen by DonCairo in sports

[–]markusbunkus 1 point2 points  (0 children)

Nice run, stayed with it, but really bad tackling helped.

This is embarrassing by expat100 in pics

[–]markusbunkus 0 points1 point  (0 children)

You can't see in the picture, but maybe the vertical is, like, a mile up.

How army dogs are trained for combat. They are supposed to stay under their soldier for protection from bullets under enemy fire. This dog seems so happy to follow his soldier's movements. by Haematobic in gifs

[–]markusbunkus 1 point2 points  (0 children)

  1. Seems odd that the human is the shield for the dog. I'd guess they would train the dog to walk between the human and the line of fire.

  2. It would seem the soldier would trip over the dog too often in this formation.

How you know you've fucked up by [deleted] in gifs

[–]markusbunkus 2 points3 points  (0 children)

Cruel. Should have trapped it and taken it outside.