Version 0.10.
Authors:
- SoniEx2
About
local batch = {} | |
local holes_err = "bad argument #%s to function '%s' (this list doesn't support holes)" | |
local refill = function (t, ...) | |
local newn = select('#', ...) | |
local length = math.max(newn, (t.n or #t)) | |
for i = 1, length do | |
t[i] = select(i, ...) |
--Note that when I performed the minification | |
--I changed a lots of parts of the code | |
--In order to get into the 1024 characters | |
--Some of those reductions are not performed in this code | |
--This is only a guide to understand how the game works | |
Y = require 'bit' --Bitops | |
a,b,c = Y.bnot,Y.bor,Y.band --Operations | |
m = a(0) --Max integer |
local bit = require 'bit' --Bitops | |
local max_int = bit.bnot(0) --Max integer | |
--Players are represented as 9bit numbers | |
local players = {0,0} | |
--Winner (1 - player 1, 2 - player 2, 3 - tie, nil - still playing) | |
local winner = nil | |
local tile_size = 200 --Tile width and height | |
love.window.setMode(tile_size * 3, tile_size * 3) |
import Html exposing (..) | |
import Html.Events exposing (on) | |
import Html.Attributes exposing (..) | |
import Html.App as App | |
import Html.Keyed as Keyed | |
import Json.Decode as Json | |
import Mouse exposing (Position) | |
import List as List | |
import Time exposing (Time, second) |
$m-colors: ( | |
'red': ( | |
'50': #ffebee, | |
'100': #ffcdd2, | |
'200': #ef9a9a, | |
'300': #e57373, | |
'400': #ef5350, | |
'500': #f44336, | |
'600': #e53935, | |
'700': #d32f2f, |
--"?" Means optional | |
--"*" Means 0 or more times | |
--"+" Means 1 or more times | |
--NUMBER is a valid Lua number, most of the time it should be positive and never +inf or -inf, it may be floating point | |
--FONT is a font for the specific engine the library is being used in (LÖVE) | |
--This will change in the future to use a framework agnostic type | |
--COLOR is a table with three or four numbers for red, green, blue and alpha, in that order and in the range of [0,255]. | |
--Example: {0, 255, 0, 128} green with half transparency | |
--TEXT is a string representing the text to be drawn for that subnode |
### Windows ### | |
# Windows image file caches | |
Thumbs.db | |
ehthumbs.db | |
# Folder config file | |
Desktop.ini | |
# Recycle Bin used on file shares | |
$RECYCLE.BIN/ |
#Lossend
The idea is to transmit text faster that with morse and similar systems but still be easily understood by humans.
I'm not sure this will work really well!
Sending the data by hand is way too hard (Binary level) but that can be done by a machine, although human may get far more compression since some understanding of phonetics is needed in order to write shorter text (Character level).
Decoding the data (Letter level) using a machine, although possible, would be hard to get the original text since most of the work must be done by the human brain which can associate sounds and structures to words.