Merge pull request #1536 from xexyl/grothe2006
This commit is contained in:
4 files changed
+34
-16
No files matched your search
+16
-13
@@ -25,7 +25,7 @@ There are other text files you may wish to try:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
./grothe 65000000 10000000 1344 < arabian.txt
|
./grothe 65000000 10000000 1344 < arabian.txt
|
||||||
./grothe 65000000 10000000 1344 < olympic.txt
|
./grothe 65000000 10000000 1344 < olympics.txt
|
||||||
./grothe 65000000 10000000 1344 < test.txt
|
./grothe 65000000 10000000 1344 < test.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -36,7 +36,8 @@ Most of the time, interference is annoying. This entry is the
|
|||||||
exception that proves the rule. What is a bug to some is a
|
exception that proves the rule. What is a bug to some is a
|
||||||
feature to this entry. :-)
|
feature to this entry. :-)
|
||||||
|
|
||||||
## Selected Author's Comments:
|
|
||||||
|
## Author's remarks:
|
||||||
|
|
||||||
The program draws patterns on the screen that can be picked up by a
|
The program draws patterns on the screen that can be picked up by a
|
||||||
[shortwave radio](https://en.wikipedia.org/wiki/Shortwave_radio). It emulates
|
[shortwave radio](https://en.wikipedia.org/wiki/Shortwave_radio). It emulates
|
||||||
@@ -47,9 +48,9 @@ To be able to run the program you need to determine the following
|
|||||||
parameters:
|
parameters:
|
||||||
|
|
||||||
```
|
```
|
||||||
carrier_freq - base frequency used to host music
|
carrier_freq - base frequency used to host music
|
||||||
pixelclock - refresh rate of the monitor
|
pixelclock - refresh rate of the monitor
|
||||||
horizontal_total - total scan along the horizontal axis
|
horizontal_total - total scan along the horizontal axis
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have `xvidtune` installed you can get the `pixelclock` and
|
If you have `xvidtune` installed you can get the `pixelclock` and
|
||||||
@@ -73,33 +74,35 @@ The core idea of using a machine to play music on AM radio goes all the
|
|||||||
way back to the [Altair computers](https://en.wikipedia.org/wiki/Altair_8800)
|
way back to the [Altair computers](https://en.wikipedia.org/wiki/Altair_8800)
|
||||||
and [Timex Sinclair ZX-81](https://en.wikipedia.org/wiki/ZX81)s.
|
and [Timex Sinclair ZX-81](https://en.wikipedia.org/wiki/ZX81)s.
|
||||||
|
|
||||||
|
|
||||||
### Several example songs
|
### Several example songs
|
||||||
|
|
||||||
Olympic Fanfare - from `antang@phakt.usc.edu` - Tony:
|
Olympics Fanfare - from `antang@phakt.usc.edu` - Tony:
|
||||||
|
|
||||||
```
|
```
|
||||||
4-9-91231,2222-321123123-9-91231,2222-32112321
|
4-9-91231,2222-321123123-9-91231,2222-32112321
|
||||||
```
|
```
|
||||||
|
|
||||||
Twinkle Twinkle Little Star - from `fsufunkyb@aol.com` - Ben Schmidt:
|
Twinkle Twinkle Little Star - from `fsufunkyb@aol.com` - Ben Schmidt:
|
||||||
|
|
||||||
```
|
```
|
||||||
1199##9-6633221-9966332-9966332-1199#9-6633221-
|
1199##9-6633221-9966332-9966332-1199#9-6633221-
|
||||||
```
|
```
|
||||||
|
|
||||||
Generic Arabian Tune - from `rdippold@qualcomm.com` - Ron "Asbestos" Dippold:
|
Generic Arabian Tune - from `rdippold@qualcomm.com` - Ron "Asbestos" Dippold:
|
||||||
|
|
||||||
```
|
```
|
||||||
453,54,4569564459,9#95458,8987453 54
|
453,54,4569564459,9#95458,8987453 54
|
||||||
```
|
```
|
||||||
|
|
||||||
Others can be found by doing a search for "touch tone phone songs".
|
Others can be found by doing a search for "touch tone phone songs".
|
||||||
|
|
||||||
|
|
||||||
### Obfuscations
|
### Obfuscations
|
||||||
|
|
||||||
- Some numbers expressed in Octal, some in hex and some in decimal
|
- Some numbers expressed in Octal, some in hex and some in decimal:
|
||||||
"A foolish consistency is the hobgoblin of little minds" - Ralph Waldo
|
"A foolish consistency is the hobgoblin of little minds" - Ralph Waldo
|
||||||
Emerson.
|
Emerson.
|
||||||
|
|
||||||
- Funky scoping, looking at the nanosleep section and `XsetWindowAttributes`
|
- Funky scoping, looking at the nanosleep section and `XsetWindowAttributes`
|
||||||
declares local variables.
|
declares local variables.
|
||||||
@@ -133,7 +136,7 @@ AM](https://web.archive.org/web/20070612152538if_/http://silcnet.org/priikone/pr
|
|||||||
for a bit more information on the program (search for `Tempest-AM Radio Signal
|
for a bit more information on the program (search for `Tempest-AM Radio Signal
|
||||||
Transmitter`).
|
Transmitter`).
|
||||||
|
|
||||||
The paper\
|
The paper
|
||||||
[Soft Tempest: Hidden Data Transmission Using Electromagnetic
|
[Soft Tempest: Hidden Data Transmission Using Electromagnetic
|
||||||
Emanations](https://www.cl.cam.ac.uk/~mgk25/ih98-tempest.pdf) by Markus G.
|
Emanations](https://www.cl.cam.ac.uk/~mgk25/ih98-tempest.pdf) by Markus G.
|
||||||
Kuhn's and Ross J. Anderson's.
|
Kuhn's and Ross J. Anderson's.
|
||||||
|
|||||||
File renamed without changes.
+14
-2
@@ -4,6 +4,11 @@
|
|||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The author provided two alternate versions, one which adds a status bar and
|
||||||
|
another that makes it text only. The author also provided a version that they
|
||||||
|
tested with Windows. See [alternate code](#alternate-code) below.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## To use:
|
## To use:
|
||||||
|
|
||||||
@@ -19,7 +24,7 @@ make
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Alternate versions:
|
### Alternate code:
|
||||||
|
|
||||||
The author provided two additional versions, [toledo3-sbar.c](toledo3-sbar.c)
|
The author provided two additional versions, [toledo3-sbar.c](toledo3-sbar.c)
|
||||||
and [toledo3-txt.c](toledo3-txt.c). Respectively these create a status bar and
|
and [toledo3-txt.c](toledo3-txt.c). Respectively these create a status bar and
|
||||||
@@ -27,6 +32,10 @@ make the game text only. These are built by default.
|
|||||||
|
|
||||||
Use `toledo3-sbar` and `toledo3-txt` as you would `toledo3` above.
|
Use `toledo3-sbar` and `toledo3-txt` as you would `toledo3` above.
|
||||||
|
|
||||||
|
The author also provided a version that was [tested for some compilers in
|
||||||
|
Windows](layer.c). As we have no Windows system to test with you will have to
|
||||||
|
figure out how to compile it but it did work at one time in some set ups.
|
||||||
|
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
@@ -61,6 +70,7 @@ chess moves are allowed, except minor promotions on human side.
|
|||||||
The game will continue up to its logical conclusion, you make
|
The game will continue up to its logical conclusion, you make
|
||||||
a mistake and the computer surpasses you. ;)
|
a mistake and the computer surpasses you. ;)
|
||||||
|
|
||||||
|
|
||||||
### WHAT ABOUT THE ENGINE
|
### WHAT ABOUT THE ENGINE
|
||||||
|
|
||||||
Uses an [alpha-beta](https://en.wikipedia.org/wiki/Alpha_Beta) search up to a
|
Uses an [alpha-beta](https://en.wikipedia.org/wiki/Alpha_Beta) search up to a
|
||||||
@@ -101,11 +111,12 @@ gcc -O3 -fexpensive-optimizations prog.c -o prog -lX11
|
|||||||
|
|
||||||
4. It will not update the window while it is "thinking"
|
4. It will not update the window while it is "thinking"
|
||||||
|
|
||||||
5. The space character has many useful applications, specially
|
5. The space character has many useful applications, especially
|
||||||
when it comes to the character limit (8).
|
when it comes to the character limit (8).
|
||||||
|
|
||||||
6. I still don't understand what to do after semicolons. :P
|
6. I still don't understand what to do after semicolons. :P
|
||||||
|
|
||||||
|
|
||||||
### CHALLENGES
|
### CHALLENGES
|
||||||
|
|
||||||
It is possible to convert this code into JavaScript with a
|
It is possible to convert this code into JavaScript with a
|
||||||
@@ -114,6 +125,7 @@ graphical interface. Can you do it?
|
|||||||
Can the evaluation function be enhanced to make the program
|
Can the evaluation function be enhanced to make the program
|
||||||
play stronger?
|
play stronger?
|
||||||
|
|
||||||
|
|
||||||
### UPGRADES
|
### UPGRADES
|
||||||
|
|
||||||
Using [toledo3-sbar.c](toledo3-sbar.c) (which is too large for this IOCCC size
|
Using [toledo3-sbar.c](toledo3-sbar.c) (which is too large for this IOCCC size
|
||||||
|
|||||||
@@ -2395,11 +2395,14 @@ it is an `arm64` CPU - the Apple silicon chip). This fix, BTW, is a mix of a fix
|
|||||||
by [Yusuke Endoh](/winners.html#Yusuke_Endoh) and Cody's. Nevertheless there are
|
by [Yusuke Endoh](/winners.html#Yusuke_Endoh) and Cody's. Nevertheless there are
|
||||||
two features that are not bugs.
|
two features that are not bugs.
|
||||||
|
|
||||||
By design this program is supposed to crash on termination.
|
By design this program is supposed to crash on termination. This actually no
|
||||||
|
longer does seems to happen but we don't need this to be added even if it might
|
||||||
|
be called a bug :-)
|
||||||
|
|
||||||
You must type in caps (except in strings) and this program is indeed
|
You must type in caps (except in strings) and this program is indeed
|
||||||
case-sensitive.
|
case-sensitive.
|
||||||
|
|
||||||
|
|
||||||
### STATUS: missing files - please provide them
|
### STATUS: missing files - please provide them
|
||||||
|
|
||||||
A file is missing from the archive linked to by the author so we have not been
|
A file is missing from the archive linked to by the author so we have not been
|
||||||
|
|||||||
Reference in new issue
Block a user