News for hackers. Stuff that matters.

sdkgames

Re:3D Army Land Navigation Courses on Friday April 11, 2025 @11:09AM (#43654685)
1. One can use the browser's devtools (press F12 when browsing the site) to figure out the needed files.

2. Create a list of the files (files.txt).

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Unit...

https://oe.tradoc.army.mil/oegames/landnav/forest/index.html

3. Download the files using the browser or a downloader:

      wget --input-file=files.txt --show-progress --directory-prefix=forest --force-directories
Re:3D Army Land Navigation Courses on Friday April 11, 2025 @06:04AM (#43652245)
How to play is explained here [1]

By the way you can run the games locally. Just download all files.

For the forest game you would have a local directory:

   ├── Build
   │   ├── Build_7_30_F.asm.code.unityweb
   │   ├── Build_7_30_F.asm.framework.unityweb
   │   ├── Build_7_30_F.asm.memory.unityweb
   │   ├── Build_7_30_F.data.unityweb
   │   ├── Build_7_30_F.json
   │   └── UnityLoader.js
   └── index.html
then just run the following in the directory

    python3 -m http.server
[1] https://www.youtube.com/watch?v=a74KM792gbo
Re:TCP Puzzlers (2016) on Wednesday February 21, 2024 @10:44AM (#39455195)
The old version [0] has the correct layout.

[0] https://web.archive.org/web/20221010031002/https://www.trito...

Re:C_std: Implementation of C++ standard libraries in C on Sunday January 28, 2024 @10:03AM (#39166404)
When someone queried Harley-Davidson bikers as to why they don't socialize with youngsters who are avid about the latest racing motorcycles, their response was, "Why should we bother? Every year, they have something new.

--

All jokes aside, check out these cool quotes about C++ from Linus Torvalds [0] and Ken Thompson [1] ;)

[0] https://en.wikiquote.org/wiki/Linus_Torvalds

[1] https://en.wikiquote.org/wiki/Ken_Thompson

> Do you have "open URLs with a browswer" turned off in your OS?

But the application works differently. It needs the browser in kiosk mode, which means it should be able to run the browser binary with specific arguments.

If I understand correctly, it's WebSocket on top of Embedded C/C++ web server (civetweb).

Also, the application must find and launch the installed browser. In my opinion, this part is very fragile. On my system, this function (webui/src/webui.c) :

   static bool _webui_browser_exist(_webui_window_t * win, size_t browser);
cannot find my browser.
gzip is based on the DEFLATE algorithm, which is a combination of LZ77(1977) and Huffman coding(1952).( https://en.wikipedia.org/wiki/Gzip )
>The program is smaller than even the 'compressed' form of its output,

>and thus represents a new departure in text compression standards.

7z and gzip disagree with this statement.

Re:Zaum on Friday August 18, 2023 @05:00PM (#37182036)
Auktyon (a Russian alternative rock band) has an album of songs based on poems by Russian futurist Velimir Khlebnikov. [1]

[1] https://www.youtube.com/watch?v=YFDBG7sGDRU

Re:My Favorite Vim Oneliners for Text Manipulation on Sunday August 06, 2023 @12:17AM (#37018942)
if you have fmt (a console program from coreutils, on Linux it's usually preinstalled) then

1) mark your lines (Shift+v then move your cursor)

2) press ':'

3) '<,'> !fmt -w 80

In the similar way I also use column to format text.

Re:Matrices and Graph on Saturday July 15, 2023 @09:56AM (#36736794)
The only effective way to raise the confidence level of a program significantly is to give a convincing proof of its correctness. [0]

Edsger W. Dijkstra

CONTEXT:

Argument three is based on the constructive approach to the problem of program correctness. Today a usual technique is to make a program and then to test it. But: program testing can be a very effective way to show the presence of bugs, but is hopelessly inadequate for showing their absence. The only effective way to raise the confidence level of a program significantly is to give a convincing proof of its correctness. But one should not first make the program and then prove its correctness, because then the requirement of providing the proof would only increase the poor programmer’s burden. On the contrary: the programmer should let correctness proof and program grow hand in hand. Argument three is essentially based on the following observation. If one first asks oneself what the structure of a convincing proof would be and, having found this, then constructs a program satisfying this proof’s requirements, then these correctness concerns turn out to be a very effective heuristic guidance. By definition this approach is only applicable when we restrict ourselves to intellectually manageable programs, but it provides us with effective means for finding a satisfactory one among these.

[0] Edsger Dijkstra - Turing Award Lecture - The Humble Programmer - 1972

https://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340...

Re:Principles of Imperative Programming on Sunday June 25, 2023 @05:10PM (#36472627)
Is this about Design by contract? [0] But why do they force students to use an imperative language?

[0] https://en.wikipedia.org/wiki/Design_by_contract

Re:91% of ML Models Degrade over Time on Friday April 14, 2023 @07:58AM (#35568479)
>Are there ML models that are trained while being used?

https://en.wikipedia.org/wiki/Reinforcement_learning#Explora...

Re:Show HN: A fast, lightweight vector3D C++ library on Wednesday March 15, 2023 @07:17AM (#35166500)
Cool! I would use a template parameter so that a user can choose between float and double [1]. I would add support for vector arrays (AOS and SOA) [2]. I'm not sure if your angle calculation algorithm is computationally cheap [3].

[1] https://stackoverflow.com/questions/4584637/double-or-float-...

[2] https://stackoverflow.com/questions/40163722/is-my-understan...

[3] https://stackoverflow.com/questions/1427422/cheap-algorithm-...

Re:Mars After Midnight: Gameplay Loop on Thursday March 09, 2023 @06:09AM (#35080164)
Adding a new game object to a game increases its complexity ("combinatorial explosion"). Good tools are needed to deal with this.

"Great tools help make great games. Spend as much time on tools as possible" (c) J.Romero.[1]

[1] https://www.youtube.com/watch?v=KFziBfvAFnM&t=884s

Re:Will Carbon Replace C++? on Monday February 27, 2023 @01:30PM (#34960101)
>without understanding that the first only adds type declarations

https://www.typescriptlang.org/docs/handbook/enums.html

Re:What's new in C# for Godot 4.0 on Sunday February 26, 2023 @09:37AM (#34945852)
Regarding Godot 3.x and HTML5 export. Users reported crashes with GLES3. It seems stable rendering is based on GLES2 (WebGL v1.0). Some features don't work in HTML5 (e.g. "Some features are also not supported in WebGL 2.0 specifically."[1]; "built-in antialiasing will not look correct for translucent lines and may not work on certain platforms" [2])

[1] https://docs.godotengine.org/en/stable/tutorials/export/expo...

[2] https://docs.godotengine.org/en/stable/classes/class_canvasi...

Re:Jonathan Blow: “Video Games and the Future of Education” on Wednesday February 15, 2023 @09:01AM (#34803833)
Jonathan Blow has been a huge influence on (independent) game developers. However, The Witness contains puzzles that are impossible for colorblind and hearing impaired people. I'm not sure I can classify this as "a thesis on learning/pedagogy, motivation/reward, truth seeking and self fulfilment."
Re:Video games made in the USSR (2020) on Sunday December 11, 2022 @04:32PM (#33947780)
>The creators of Tetris saw none of the profits from their creation. Their game was seized by the state as soon as it became popular and they never really profited.

Wiki tells a different story

Re:Blender 3.4 on Wednesday December 07, 2022 @10:56AM (#33895813)
I want them to support a textual shading language for all render engines. Instead, they cultivate graphical programming. From a programmer's point of view, this is a significant drawback.
Using analytic geometry methods, I test every new figure, whether it gives a solution.

Thank you for the feedback. I will check that.

That's strange. I have no errors on Firefox 104.
Thanks for the feedback. I will check the win conditions.
Thank you! While Euclidea and my game explore the same theme, the approaches are different. It seems Euclidea uses some kind of automated theorem prover to verify a solution. I use numerical verifiers. There are pros and cons for both approaches. The tools are different. I think some choices in Euclidea are too restrictive (e.g. collapsible compass, inability to draw arcs). Their monetization model affects the gameplay (grinding, solution hiding).

Show HN: Compass and Ruler construction problems as puzzle game

https://sdkgames.itch.io/ecocoru

Ecocoru is a puzzle game where you have to solve compass and ruler construction problems. The game mimics compass and ruler and let you draw straight lines/segments and circles/arcs. You can also view and explore a solution for each problem. A basic knowledge of well-known results of Euclidean geometry is needed to play the game. The game has over 70 problems.The game is designed for...

( Read More... | 27 comments | 125 points | on HN )
Re:Paradigms of Artificial Intelligence Programming (1992) on Sunday August 14, 2022 @08:11AM (#32458594)
Most popular Linux distributions include Common lisp packages. For example, "sbcl". if you have Debian/Ubuntu you should be able to install it like this: "sudo apt-get install sbcl"
Re:Suckless.org – software that sucks less on Friday August 12, 2022 @08:49PM (#32445768)
If you need additional functionality, you must patch the program's source code with diff files. I don't think this principle scales well. If you change the source code, all patches will become invalid. How is it supposed to work?
>don’t care too much about integrating with web stacks (which is always a chore in C++)

Why so? Using Emscripten You can always compile C++/C to WebAssembly (for execution in web browsers).

Older »