NUMBERF/CKER (formerly Numberwang) - math game (not 2048)
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
DAMN. Good job on that.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
Damn, congrats.micha wrote:Boom!Nicely done. I like the sweeping animation.
DRAW DRAW - online painting app CLICK NUMBERS - cool game with numbers THEME LOVEFRAMES - a collection of my themes HOST FOR FREE - free hosting for online LOVE games STALK PEOPLE - a map of LOVE users
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
Nice.
162!
162!
Help us help you: attach a .love.
- VideahGams
- Prole
- Posts: 25
- Joined: Wed Dec 31, 2014 5:56 pm
- Location: Scotland
- Contact:
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
For funsies, I'm writing a crappy little bot for this.
I need to rethink some of the logic for the bot, but it can get around 60-80 points.
I need to rethink some of the logic for the bot, but it can get around 60-80 points.
- Guard13007
- Party member
- Posts: 133
- Joined: Sat Oct 25, 2014 3:42 am
- Location: Internet, USA
- Contact:
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
That sounds pretty interesting, could you elaborate how it works and/or show some code for it?VideahGams wrote:For funsies, I'm writing a crappy little bot for this.
I need to rethink some of the logic for the bot, but it can get around 60-80 points.
- VideahGams
- Prole
- Posts: 25
- Joined: Wed Dec 31, 2014 5:56 pm
- Location: Scotland
- Contact:
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
Sure!Guard13007 wrote:That sounds pretty interesting, could you elaborate how it works and/or show some code for it?
To start off with, I make most of the variables in main.lua global so the bot can read them.
Code: Select all
board = {}
size_w = 3
size_h = 3
n = 0
min, max = 1, 9
gameover = false
biggest_x, biggest_y = 0, 0
bigfont = love.graphics.newFont("swag/Junction-bold.otf", 25)
smallfont = love.graphics.newFont("swag/Junction-bold.otf", 32)
bg = {0, 0, 0}--{255, 60, 60}--
anim_from_x, anim_from_y = 0, 0
anim_to_x, anim_to_y = 0, 0
anim_from, anim_to = 0, 0
anim_dt = 0
anim_time = 0.35
anim_after = nil
Code: Select all
function love.load()
io.stdout:setvbuf("no")
generate()
require 'NFBot'
end
Code: Select all
local originalDraw = love.draw -- Get NumberFuckers draw function.
local originalUpdate = love.update -- Get NumberFuckers update function.
function love.draw()
originalDraw()
-- We can draw our own stuff here.
end
function love.update(dt)
originalUpdate(dt)
-- We can do our own logic here.
end
So we cycle through the tiles and see if the tile is dividable by the number.
If it is dividable, place the number in an adjacent tile.
If there is no possible tiles, then place it anywhere.
I know, not very smart, but i'm in the process of re-writing the logic, so I don't have much code to show for it but here's a webm of the dumb version of the bot in action. http://webm.host/76cae/vid.webm
When it's finished I'll probably stick it up on GitHub.
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
I started to lose concentration near the end, but I think I've got the gist of its logic. Danger of addiction.
For the bot: why not use some fancy prime factorization to sort out which numbers are the most divisible?
You could sort possible outcomes by something like the global number of divisors, but I'm sure there is a better way to do it.
For the bot: why not use some fancy prime factorization to sort out which numbers are the most divisible?
You could sort possible outcomes by something like the global number of divisors, but I'm sure there is a better way to do it.
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
This game is really addictive lol
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
Dang, got 220 but didn't take a pic...
Oh well, this game is great and really addictive. Too bad I suck at mental calculation, so I cheated quite a lot (had a calculator on another window )
Oh well, this game is great and really addictive. Too bad I suck at mental calculation, so I cheated quite a lot (had a calculator on another window )
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
Nice game, very addicting.
Last edited by Beelz on Mon Nov 23, 2015 3:43 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 2 guests