Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
Hnefatafl: The Viking Board Game (download on page 7)
« previous
next »
Print
Pages:
1
...
6
7
[
8
]
9
Go Down
Author
Topic: Hnefatafl: The Viking Board Game (download on page 7) (Read 34233 times)
0 Members and 1 Guest are viewing this topic.
jsj795
LV9
Veteran (Next: 1337)
Posts: 1105
Rating: +84/-3
Re: Hnefatafl: The Viking Board Game (download on page 4)
«
Reply #105 on:
April 16, 2010, 07:07:17 pm »
oh yeah, the factory. lol I totally forgot about it
I hope to finish this within a week, and start working on TLM again.
I think I did pretty well on the exams. I don't have anything major now, except AP tests given on May.
Logged
Spoiler
For
funny life mathematics
:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.
Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Hnefatafl: The Viking Board Game (download on page 4)
«
Reply #106 on:
April 16, 2010, 07:49:28 pm »
aaaah ok ^^, glad to hear ^^
As for Factory I was worried
Logged
Zera
LV8
Addict (Next: 1000)
Posts: 737
Rating: +82/-7
Monochrome Artisan
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #107 on:
April 18, 2010, 02:28:31 pm »
Went ahead and updated the first post so everyone knows the new download is on page 7.
Was the king's throne issue addressed, or is that going to be in another release? The other capturing mechanics seem accurate, though.
Logged
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #108 on:
April 18, 2010, 02:34:41 pm »
Btw is the game supposed to work when both players are set to A.I? Will the two AI's try to beat each others or will it error?
Logged
jsj795
LV9
Veteran (Next: 1337)
Posts: 1105
Rating: +84/-3
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #109 on:
April 19, 2010, 02:45:28 pm »
The game is supposed to work when both players are set to AI, and I want them to play differently. And the king's throne will be in another release (I already fixed it, but I want the defender's AI to be working)
Logged
Spoiler
For
funny life mathematics
:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.
Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #110 on:
April 19, 2010, 02:45:56 pm »
Aaah ok I'll give it a try then
Logged
jsj795
LV9
Veteran (Next: 1337)
Posts: 1105
Rating: +84/-3
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #111 on:
April 19, 2010, 04:05:02 pm »
Wait... if you set the AI as defender, it won't do anything. I haven't coded for defender yet. Right now, I'm figuring out the way to optimize the attacker's AI.
Logged
Spoiler
For
funny life mathematics
:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.
Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #112 on:
April 19, 2010, 11:05:30 pm »
Oooh ok, thanks for the info
Logged
jsj795
LV9
Veteran (Next: 1337)
Posts: 1105
Rating: +84/-3
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #113 on:
April 21, 2010, 10:57:22 pm »
YES! I finally found a way to make the AI faster!! I made a small look-up table that gets created every time AI goes. The position and its value that the calculator already found is stored into two lists, one for position and one for value, and if the calculator later tries to search for the value of the position that it already found, then it just gets the value from the list and move on. Using this, the AI speed got cut in half, resulting in ~10 seconds for the AI movement. I have to run tests for any bugs or things that might be present, and exactly how faster it runs, but I think it's good enough. And the amazing thing is that it only added ~50 bytes to the program (although it requires two ~30 dimension lists during the run-time)
Logged
+1/-0 karm for this message
Spoiler
For
funny life mathematics
:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.
Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
Zera
LV8
Addict (Next: 1000)
Posts: 737
Rating: +82/-7
Monochrome Artisan
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #114 on:
April 21, 2010, 11:08:52 pm »
That's awesome. Sounds like A.I. time will be significantly cut short.
Some rounds could go on for a pretty long while, depending on how skilled the A.I. is. It might have been tedious to wait some 20 seconds for it to execute its move each time.
Logged
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #115 on:
April 21, 2010, 11:37:18 pm »
Wow nice optimization. I agree with Zera. Sometimes I played chess with my bro and we would think for 20 seconds each sometimes, causing a game to last a few hours
Logged
jsj795
LV9
Veteran (Next: 1337)
Posts: 1105
Rating: +84/-3
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #116 on:
April 22, 2010, 09:45:03 am »
:'( Sorry I lied. It did make the AI think shorter, but only on certain times when there are overlapping position thing. I was excited that it took 10 seconds to take the 2nd and 3rd move, but as more possible moves opened up, the longer AI took to make a move... AI spends 8~70 seconds depending on available moves possible. And note that I'm running the program with TI-84+SE, so it would take twice as long on TI-83+...
The AI itself is not too stupid, sometimes it makes obvious mistakes, but it also surprises me with the move that I would normally miss if I didn't look carefully. But it would be easy to destroy AI if you are intermediate player playing white.
I tried to make another version of AI, where the list contains all the possible moves and their values, and the positions and values fluctuate, but it took too big of a memory (two 1000 bytes lists), speed gain wasn't too big, and the AI got more stupid, so I got rid of that idea.
What I am going to implement is the alpha-beta pruning (although idk if that's going to lower the speed significantly) and some more minimax algorithm. Also I might try to get rid of the For( group (it will increase the size of the program a lot, but I think for AI the speed is the utmost importance). Hopefully, I can get something to work.
Logged
Spoiler
For
funny life mathematics
:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.
Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
Zera
LV8
Addict (Next: 1000)
Posts: 737
Rating: +82/-7
Monochrome Artisan
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #117 on:
April 22, 2010, 01:16:28 pm »
That might not be a problem, if the longer moves are the ones that occur less frequently. If those types of moves aren't generally important to the A.I.'s skill level, then maybe they could be removed, or supplemented with another strategy.
Logged
jsj795
LV9
Veteran (Next: 1337)
Posts: 1105
Rating: +84/-3
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #118 on:
April 22, 2010, 01:49:37 pm »
Well, it seems like that the AI takes longer and longer as the game goes on, because there's more available moves possible when the pieces are more spread out and the board gets more complex. So the average speed seems to be around 30~40 seconds
Logged
Spoiler
For
funny life mathematics
:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.
Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Hnefatafl: The Viking Board Game (download on page 7)
«
Reply #119 on:
April 22, 2010, 04:27:45 pm »
ouch sorry to hear, I wish you good luck
Hopefully a solution can be found
Logged
Print
Pages:
1
...
6
7
[
8
]
9
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
Hnefatafl: The Viking Board Game (download on page 7)