Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
MervBot See low game DLL

 
Post new topic   Reply to topic Printable version
 View previous topic  A3SSO : A3 SubSpace Organizer Post :: Post 3D LVL Viewer The most useless ss dev ...  View next topic  
Author Message
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Mon Mar 31, 2008 7:35 pm    Post subject: MervBot See low game DLL Reply to topic Reply with quote

This plays the see low game

(its a dice game, roll 3 dice until 2 of dice are the same number, then you ignore the 2 dice that are the same and the one thats different then you compare to your friends roll)

Problem is that it takes a long time to genorate the number so i included source biggrin.gif so if you know how to speed it up, do it icon_wink.gif (if you feel like it)

PS: my first DLL




has a3.dll, README.txt, source also

a3 dll public.rar - 130.52 KB
File downloaded or viewed 36 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Mon Mar 31, 2008 8:56 pm    Post subject: Reply to topic Reply with quote

for logical or in if statements use || instead of |

also for the source just include commands.cpp and spawn.cpp and spawn.h instead of just a snippet

also it seems like there's no way for the player to win.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Tue Apr 01, 2008 3:58 pm    Post subject: Reply to topic Reply with quote

Its 50% chance to win, k but what is a difference between bit wise OR and logical OR ?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Bak
?ls -s
0 in


Age:24
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Tue Apr 01, 2008 5:13 pm    Post subject: Reply to topic Reply with quote

well I mean the bot never prints out "you win", only "I win"

a bitwise or does an or on all the bits of a variable, so If I do 4 | 2 , the result is 6

Code: Show/Hide

4 (decimel) = 100 (binary)
2 (decimel) = 010 (binary)
4|2         = 110 (binary) = 6(decimel)


4 (decimel) = 100 (binary)
5 (decimel) = 101 (binary)
4|5         = 101 (binary) = 5(decimel)   


a logical or is used for true/false values.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
blue monday
Novice


Joined: Nov 04 2005
Posts: 75
Offline

PostPosted: Tue Apr 22, 2008 5:54 pm    Post subject: Reply to topic Reply with quote

Interesting...
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Misc User Apps All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 638 page(s) served in previous 5 minutes.

phpBB Created this page in 0.519174 seconds : 32 queries executed (75.8%): GZIP compression disabled