![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Professional Programmer
|
Quote:
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
|
#12 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 644
Rep Power: 4
![]() |
Excellent work!
![]() I wish these things could be more easily done with C++... My one criticim is that if you loose, you see the "you loose" screen before you see where the computer actually placed their symbol. |
|
|
|
|
|
#13 |
|
Expert Programmer
|
thanks, ok thats really easy to sort out i will do it asap.
![]()
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#14 |
|
Professional Programmer
|
Fix the loose->lose typo too, I guess :p
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#15 |
|
PFO Founder
![]() ![]() |
are there images that are needed for this? Can you upload them on to the forums so i can actually play this game? thanks
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#16 |
|
Expert Programmer
|
Yeah there's a download link, to a .rar file.
![]()
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#17 |
|
PFO Founder
![]() ![]() |
was that there the whole time? if so im pretty stupid for not seeing it lol
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#18 |
|
Expert Programmer
|
lol yeah it was.
![]()
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#19 |
|
Programming Guru
![]() ![]() ![]() |
looks good, I'll check it out when I get my network back up to par.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#20 |
|
Professional Programmer
|
AI for a game like this isn't even that hard. All you need to do is create a tree for the current move, where every branch is a different option. Then you must calculate a value for each branch which determines which options is closest to the final result, and then go down the branch with the highest number. I'm not saying you could implement it right away, but theoritically it's quite simple (PM me for more info on this).
The game looks fun and well written (i've seen some BAD Tic-tac-toe games in my Intro, Java, classes), and if you're into AI, it's definitly something you could continue working on. -Dizz |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|