[C++/Lua] Whiteboard Library

Come in here to talk about your sky-net style world-destroying super bots!

Moderator: Defcon moderators

Montyphy
level5
level5
Posts: 6747
Joined: Tue Apr 19, 2005 2:28 pm
Location: Bristol, England

[C++/Lua] Whiteboard Library

Postby Montyphy » Wed Feb 24, 2010 4:06 pm

A whiteboard library providing functions for drawing various shapes and objects. Useful for debugging or whiteboard communication.

Project page:
Shinkutanku :: Defcon AI - Whiteboard Library

Download:
C++ - draw.h, draw.cpp
Lua - draw.lua

License:
Released under the MIT license

Documentation:
http://docs.shinkutanku.com/defcon/draw

Sample image:
Image

C++ example usage:
draw_bot_sample.h
draw_bot_sample.cpp

Lua example usage:
draw_main_sample.lua
Last edited by Montyphy on Tue May 04, 2010 12:35 pm, edited 10 times in total.
Uplink help: Check out the Guide or FAQ.
Latest Uplink patch is v1.55.
User avatar
roflamingo
level3
level3
Posts: 404
Joined: Fri Jan 19, 2007 10:25 am

Postby roflamingo » Wed Feb 24, 2010 4:29 pm

<yoink>

It's good for debugging!...already tired of x's, boxes, and o's
elDiablo
level5
level5
Posts: 3111
Joined: Thu Mar 14, 2002 12:23 pm
Location: London, UK

Postby elDiablo » Wed Feb 24, 2010 4:34 pm

That's actually quite cool!
We dont stop playing cos we get old... We get old cos we stop playing.
User avatar
Ace Rimmer
level5
level5
Posts: 10803
Joined: Thu Dec 07, 2006 9:46 pm
Location: The Multiverse

Postby Ace Rimmer » Wed Feb 24, 2010 5:07 pm

Can you believe I was actually going to try to create the entire alphabet in Kremlin format using the whiteboard, but this is just crazy. :P

Thanks!
Smoke me a kipper, I'll be back for breakfast...
Montyphy
level5
level5
Posts: 6747
Joined: Tue Apr 19, 2005 2:28 pm
Location: Bristol, England

Postby Montyphy » Wed Feb 24, 2010 5:16 pm

Ace Rimmer wrote:Can you believe I was actually going to try to create the entire alphabet in Kremlin format using the whiteboard, but this is just crazy. :P

Thanks!


I was tempted to do the same. :P Would only require a modification of the teapot method(s).
Uplink help: Check out the Guide or FAQ.

Latest Uplink patch is v1.55.
martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm

Postby martin » Wed Feb 24, 2010 5:38 pm

I've been considering making a whiteboard library which would do two things:

1) Have persistent whiteboard objects, deleting an object will clear the entire board and redraw the old ones (no erase functionality for bots unfortunately)
2) Parse a font file, so I can draw text without hardcoding all the characters

However, while number 1 would be useful, it's not *that* useful, so I don't think I can be bothered. And I can't find any good info on how font files are structured, and proper research into this is beyond the scope of how much I can be bothered ;)

So I think I might just use this one...Thanks Monty :D

Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot? ;)
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
Montyphy
level5
level5
Posts: 6747
Joined: Tue Apr 19, 2005 2:28 pm
Location: Bristol, England

Postby Montyphy » Wed Feb 24, 2010 9:45 pm

Added the C++ version I wrote prior to making the Lua version.

martin wrote:1) Have persistent whiteboard objects, deleting an object will clear the entire board and redraw the old ones (no erase functionality for bots unfortunately)


Yeah, it's a shame the bots can't use erase. Could try requesting it I suppose.

martin wrote:Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot? ;)


I am tempted :P
Uplink help: Check out the Guide or FAQ.

Latest Uplink patch is v1.55.
User avatar
Ace Rimmer
level5
level5
Posts: 10803
Joined: Thu Dec 07, 2006 9:46 pm
Location: The Multiverse

Postby Ace Rimmer » Wed Feb 24, 2010 9:49 pm

Montyphy wrote:
martin wrote:Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot? ;)


I am tempted :P

I was tempted to offer somebody with proper coding skills $ for a bot, that would do what I am trying to accomplish. Of course, there'd be a standard NDA. :P

I still toy with the idea occasionally, but am put off by the probably 'too' high cost and lack of learning opportunity.
Smoke me a kipper, I'll be back for breakfast...

Return to “AI Bots”

Who is online

Users browsing this forum: No registered users and 6 guests