Alphabet mathematics

  • 12 entries found
NameContestantFinal vote
NameContestantFinal vote
Shefki's Entry Shefki 4.000
-- remove all entries from a table 
local function wipe(t)
    for k in pairs(t) do
        t[k] = nil
...
Mathematics made easy! Xinhuan 4.000
-- Converts a string like "6AB" into a string "(6*1e2+A*1e1+B)"
local function makeExpression(str)
    local exp = ""
    local len = #str
...
Alphabet Mathematics solution v1, Jacob Dlougach. Dlougach 4.000
--[[
    Super-fast bruteforcing
    
    The description of the algorithm follows:
...
calculate jerry 3.000
-- Code by Jerry. Released as public domain.
local mapping, charmap, entries
local digitmap = {}
for i = 0, 9 do digitmap[i] = true end
...
Alphabet Mathematics by x87bliss x87bliss 3.000
--[[
Russ Kubes (x87bliss) June 8, 2009

WoWWace Alphabet Mathematics Contest entry
...
Alphabet Math Odlaw 3.000
function calculate(Left, Operation, Right, Answer)
  local Map = {};
  -- Setup some variables to help calculate permutations. (Start with 0:  0, 1, 2, 3...)
  local NumbersToSubst = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
...
Alphabet mathematics with more general equations. vaeyl 3.000
-- Yes, this is way longer than it needs to be, but then is does a lot more than it needs to do.
-- Bloatware for the win =)
-- by Vaeyl of Nozdormu
...
Gendi gendi 2.000
-- Alphabet mathematics
-- By Gendi
-- 25/05/2009
-- I make no apologies for the use of the word bibble in any form
...
warbaby warbaby 2.000
local exp, avails, leadings, vars, operas

function calculate(left, operation, right, answer)
   avails = {0,1,2,3,4,5,6,7,8,9}
...
John Howard cyrnus 2.000
local function getCharacters(word, chars, leading)
-- extracts the individual characters from 'word' to build 'chars' and 'leading'
-- chars is a string of unique characters in the order they appear in the equation
-- leading gets the first character of 'word' appended to it
...
Elkano's Entry Elkano 1.000
local usedchars = {}
local char2index = {}
local nonzero = {}
...
Simple recursive ckknight 0.000
local operations = {
    ['+'] = function(left, right)
        return left + right
    end,
...
  • 12 entries found