Premium Only Content

Computer recreations: core wars
In this video I show you a Python implementation of a 1984 article by A. K. Dewdney from the "Scientific American" magazine called "In the game called Core War hostile programs engage in a battle of bits".
Using a circular list and implementing at least two of the proposed operations, it's possible to execute basic programs in the Redcode programming language.
The user codes the language mnemonics in the main function of the program which are then translated into "machine code" and stored into the "core memory", i.e.: circular list. The simulator will then execute these instructions.
Links to the article:
- https://www.scientificamerican.com/article/computer-recreations-1984-05/
- https://people.scs.carleton.ca/~soma/biosec/readings/akdewdney/First.htm
Source code:
Wikipedia:
- https://en.wikipedia.org/wiki/Core_War
CHAPTERS
0:00 Intro
0:22 General overview of the article: history, programming language, operations
1:37 Circular array
2:00 Circular list in Python
2:10 Instruction pointer: keeps track of the execution
2:44 The Simulator class
3:11 Structure of the machine code
4:18 Addressing types
5:12 A 3-instruction program replicated from the article
5:55 Check the expected result of the program
6:16 The "Imp" program
6:57 Important methods of the Simulator class: transform human mnemonics to machine code and vice-versa, store and execute operations
8:17 The MOV operation
8:27 Script execution
9:32 Outtro
#computerrecreations #corewars #python
-
39:40
The White House
4 hours agoPresident Trump Signs Executive Orders, Sep. 30, 2025
38.7K36 -
1:06:26
vivafrei
4 hours agoLive with Alexa Lavoie! ANTIFA in Canadian Government? RCMP the New Gestapo? AND MORE!
143K44 -
40:38
Dad Saves America
1 day ago $1.10 earnedLeft Is Right, Up Is Down: The Overton Window Has Been Shattered
19.3K3 -
LIVE
LFA TV
19 hours agoBREAKING NEWS ALL DAY! | TUESDAY 9/30/25
809 watching -
1:41:28
freecastle
7 hours agoTAKE UP YOUR CROSS- May the forces of evil become confused on the way to your house.
18.7K4 -
1:23:05
Awaken With JP
6 hours agoGetting NUTS! FBI Did J6, Comey Indicted, and More! - LIES ep 110
67.6K34 -
2:09:51
Pop Culture Crisis
4 hours agoJK Rowling OBLITERATES Emma Watson, Trump Vs Ariana Grande, Could The Rock be President? | Ep. 926
51.3K13 -
1:46:23
The HotSeat
3 hours agoCommander In Chief and SECWAR Address The Troops, and I AM HERE FOR IT!
28.2K16 -
2:11:49
The Nunn Report - w/ Dan Nunn
4 hours ago[Ep 759] Resist Digital ID | Dems to Shut Down Gov | Obama Library Funds Tides / Terrorists
20.1K7 -
1:42:33
The Quartering
7 hours agoFat Soldiers BLASTED, Kirk Assassin In Court, JK Rowling Destroys Emma Watson & Crowder Takes Risk
138K29