Posts for Bisqwit


Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
jaysmad wrote:
How could i forget :)
Whoa :P
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
qFox wrote:
I see no problem with that, every bot can read it so there's no advantage. It's a matter of strategy.
Well, how about ― is a bot allowed to WRITE to the game's RAM when it performs a look-ahead (but not when it's actually submitting a frame of input)?
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
mmbossman wrote:
I still see mostly 0's for tech score for the only couple of movies to have been published since the new rating system was implemented: http://tasvideos.org/rating.exe/1196/details http://tasvideos.org/rating.exe/1195/details Any particular reason why this are still goofy? Is it because those particular tech ratings have decimals, and the published movie rating system doesn't accommodate decimals yet?
Warp, any ideas?
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
I'll try too.
Bisqwit wrote:
What kind of life do you want to lead 10 years from now? I.e., where do you see yourself, what kind of family situation, etc.?
Ouch, a boomerang! In 10 years… Financially: Stable Family situation: Marriage, with love and God as the foundation. But I'm also prepared to live alone. Professionally: A managing role in a software engineering firm, with enough pay that I will be financially stable and that I will get an adequate pension when I'm at that age. Hobbies: I would like to see God give me a satisfying mission. Maybe even such fulfilling (and demanding) that I don't need a professional job. I have some inkling on what it might be, but I don't know yet for certain. I also like programming, but I would like to do that either for the work or the hobby, not both, to avoid burnout. If it's for work, it should be something I really enjoy and would do for hobby otherwise.
Derakon wrote:
Xkeeper: what's a practical, efficient, moral, and effective way to solve world hunger?
I think the best way to solve any problem involving suffering is through the opposite of sin, i.e. love. I mean the kind of love that is tolerant and kind, does not envy, boast or preen, behaves fine, is not selfish nor easily provoked, thinks no evil, rejoices in the truth and not iniquity, and so on. Love sends people to help other people. Love sends missionaries, and makes them build schools, toilets and houses; send medicine, cloth and food, educate, etc. And for people to stay in love, i.e. out of sin, doing God's will, listening to God is the way. Also, people should procreate less at those areas where natural resources are more scarce. ;)
mmbossman wrote:
what is your opinion on the death penalty?
I think there are only two reasons with which the death penalty can be criticised: ― The penalized person may eventually turn, repent and change, and become a productive citizen ― The penalized person may have been unjustly judged, and evidence indemnifying them may appear in time, or laws concerning their sentence may change Obviously it is impossible to know for certain whether either case happens for that particular prisoner. I certainly cannot tell when death penalty would be acceptable, but I cannot say it's to be forbidden either.
Baxter wrote:
Do you think bald people have a harder time than people with hair when it rains? On one hand, the cold rain drops right on the skull... but on the other hand, it's easier to dry themselves when they get home...
If rain is a problem, use an umbrella. If the cold is a problem, use a hat.
Warp wrote:
I suppose my question would be: Why should I care?
You obviously care enough to post about it. Think back along that thread of thought, and you'll find the answer to your question as well.
RT-55J wrote:
Why can't everybody just get along?
Sin :) I smile because it's such an easy answer. People focus too much on theirselves, and on other people, and their problems, when they should focus on what God can do for them.
RT-55J wrote:
What is the length of a day in furlongs?
0905>bisqbot .cl day*c in gigafurlongs 0905BisqBot- day*speed of light in vacuum = 128.7583928418039 gigafurlongs (day=24 hr, speedoflight=c=2.99792458e8 m/s, hr=hour=60 min, min=minute=60 s, gigafurlongs=1e9 furlong, furlong=40 rod, rod=5.5 yard, yard=3 ft, ft=foot=12 inch, inch=2.54 cm, cm=centi m=1e-2 m)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
For something like Bomberman, is it permitted for a robot to use magical precognition read the RAM to see immediately where the actual bonuses and exits are located, instead of trying to guess?
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Off-topic in PCSX discussion. Split to a separate thread and locked.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
alden wrote:
Whoah! Easter egg! Then I tried hitting tab to turbo my browser to see it again... :S
;)
Post subject: Re: Technical rating currently broken
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Bisqwit wrote:
Hmm. Not worth making a thread over, merging it when I have time. But I'll see and fix the bug.
Fixed on both accounts.
Post subject: Re: Technical rating currently broken
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Bezman wrote:
Currently, I can't give out 'technical' ratings for published movies - I can give ratings for entertainment, but whatever I select in the other drop-down box, it doesn't seem to register (and records as 'missing' when I look at stuff I've rated). I thought this was worth making a thread for. Hope that's cool.
Hmm. Not worth making a thread over, merging it when I have time. But I'll see and fix the bug.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Thanks Xkeeper for the answers.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
qFox wrote:
It's a nice framework, but don't you think the latency will make battling over a network take forever and ever?
Hmm... Perhaps 300*nplayers milliseconds per frame? 0.6 seconds per frame? Yeah, that might be true. 36 real seconds per a game second. If that inconvenience is a problem, then yeah, we've got no solution. So I suppose the right solution is not to run it through the network, but instead, a single LUA program that runs all the bots simultaneously (maybe under different forks/threads) or in sequence, synchronizing them at some points... That just means you've got no means to test it unless you've got the source code of the other bots.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
As for a multiplayer game, I vote for Mario bros. (Either the original or the revised subgame in SMB3.) (Hasty disassembly here: http://bisqwit.iki.fi/jutut/mariobros-disasm.asm ― if someone has RAM addresses I can add them for easier searchability.) -------- Or, Battle City. ( http://bisqwit.iki.fi/jutut/batlcity-disasm.asm ― RAM addresses welcome.)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Allright, in case someone is interested of a multiplayer LUA contest, I created a framework for it on LUA. Source code: ― http://tasvideos.org/Bisqwit/LuaFunctions.html#MultiplayerLuaBotFramework It requires these LUA extensions to be installed: ― http://luaforge.net/projects/luasoap/ (in Debian, aptitude install lua5.1-soap-dev)* ― http://luaforge.net/projects/bitlib/ (in Debian, aptitude install lua5.1-bit-dev) (The bitlib dependency can be removed by changing the bit.band into an AND, but this function was not available to me during standalone testing, so I used bitlib instead.) The server for communicating these matches has been started. It can run multiple simultaneous matches, but each match must be configured beforehand, with a list of passwords for each player (to prevent the bots form screwing up other players' or other games' input). For the testing, I have preconfigured 30000 two-player games, each of them having "password" as the password for both players. Just use the number (e.g. 0x1) as your gameno, and "password" as your password. Negotiate the gameno you use with your partner. Valid game numbers are from 0x1 to 0x7530. *) Requires LuaExpat and LuaSocket.
Post subject: Re: Input from Lua is not recorded by FCEUX
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Xkeeper wrote:
just writing the output to the screen. e.g.
00  A  R
01 B U
etc. Then manually inputting this instead of the bot.
And for that, you can use this: http://tasvideos.org/Bisqwit/LuaFunctions.html#FunctionExplainInput (makes especially long sequences of input more manageable)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
For multi-bot contests... I suggest a rerecording netplay mechanism which allows for the bot to 1) play a few frames ahead guessing what kind of input the opposite player(s) will provide 2) redo, and this time, wait until the recipient provides input, then go ahead synchronously It would use a centralized server for netplay. The synchronization goes like this (pseudocode):
main_loop:
my_input = generate_my_input()
server::submit(gameno, my_input)
input_array = server::get_frame(gameno)
for i=0,3 do joypads.set(i, input_array) end
emulator.frameadvance()
goto main_loop</pre> The server would respond to the following kinds of messages:
Message   Input                   Output
REGISTER gameno,ctrlno errno
SUBMIT gameno,ctrlno,input errno (stalls until all clients have issued and returned from the GETFRAME query of the previous frame)
GETFRAME gameno inputarray (waits until all ctrls have been submitted)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Tub wrote:
that looks short and sweet until you realize that φⁿ doesn't compute in constant time either.
It does calculate in a constant number of cycles on a system equipped with a floating point (co)processor.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
OmnipotentEntity wrote:
Use this one: F(n) = (φⁿ - (1-φ)ⁿ) / √5 = (φⁿ - (-1/φ)ⁿ) / √5
Not good enough. Considering that the function only is supposed to handle integer values, this works faster and gives the same results:
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Cpadolf wrote:
So it will not be added to published movies until later?
Yes, not now but later.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
Ah, so GCC supports them for C but not C++. In any case, they're not standard C, and such, should be avoided unless you're writing a GCC-specific program for a good reason.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Decimal fraction rating added... (Javascript only). I apologize for the fact that it doesn't exactly follow the same style as the rest of the forums. (Also, it doesn't support dragging the cursor; I couldn't get it working on Firefox in my short available time. If someone wants to take a stab at it, go ahead.) Also, IE7 seems to be flabbergasted with the code as usual, so it doesn't work on IE -- but it still allows inputting a fractional vote value though.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Swedishmartin wrote:
Original code:
#include <stdio.h>

int main()
{
   int fib(int x)
   {
      if(x<2)
       return 1;
      
      else
       return fib(x-1)+fib(x-2);
   }
   
   int n;
   printf("Integer goes here, yo: ");
   scanf("%i", n);
   printf("\nThe Fibbonacci number of %i is %i\n", n, fib(n)); //I really believe that this line is faulty in the "...\n", n, fib(n))" declaration.
   
   return 0;
}
That cannot be the original code either -- because nested functions are not supported in C. If your compiler supports it, weird. I thought you said you used GCC, and to my knowledge, GCC doesn't support them. In any case, you should move the fib(){} function body out from the enclosing main(){} function body. Function definitions cannot be nested in C. Assuming that was really just another transcription error, the real crash cause is the missing & as FractalFusion pointed out.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Swedishmartin wrote:
More troubles! I was surfing the internet when I came upon this little thing: <snip> I borrowed it for use in my own code. And this is how my code looks at the moment: <snip> The program fails when trying to print the numbers. Why? (Because %i signifies an integer, right? So I have to use %i two times, right?) And would it be possible to put the \n line break in the scanf, to make the code neater? And what's up with signed/unsigned integers? What does it mean?
In printf, instead of %i, I usually use %d, but that is really a matter of taste. However, in scanf there is a difference between %i and %d: %i can read hexadecimals (written as 0x7F for example) whereas %d can only read normal base-10 integers. Your code has a syntax error. The if clause should have parentheses in it. Other than that, it looks okay. unsigned/signed controls the matter of whether the values can be negative or not. For ease of thinking, let's demonstrate with a 4-bit integer:
Binary  SignedValue  UnsignedValue
0000 0 0
0001 1 1
0010 2 2
0011 3 3
0100 4 4
0101 5 5
0110 6 6
0111 7 7
1000 -8 8
1001 -7 9
1010 -6 10
1011 -5 11
1100 -4 12
1101 -3 13
1110 -2 14
1111 -1 15
So you see, if an integer is "signed", it sacrifices half of its range (i.e. one bit) to represent negative values; whereas if it is "unsigned", it uses the full range (i.e. all bits) for positive values. "int" is generally 32 bits, so its unsigned range is 0..(2^32-1) and its signed range is -(2^31)..(2^31-1)
Post subject: Re: I'll bite.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
jimsfriend wrote:
It can be helpful to point out to people where their theology is wrong
You see, it's exactly that kind of *attitude* which makes any type of actual conversation moot and pointless.
Uh-oh, really?
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
eternaljwh wrote:
Have you read John Milton's Paradise Lost, if so, what do you think of its portrayal of Lucifer?
No I haven't.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
jimsfriend wrote:
Bisqwit wrote:
jimsfriend wrote:
I just want to be sure I understand what you're saying here. Things can happen that are contrary to the will of God?
What do you think sin is then?
God's will.
Let's see -- you quoted many places from the Bible. I must compliment you, you took great consideration in choosing them. I think the general line behind all of these is that nothing happens in the world without God explicitly permitting it. It may not be God's will, but he is tolerating it. In a similar manner as I could say that not all discussions that happen on these forums are my will, but I'm tolerating them (even though due to the virtue of being the forum admin, I could easily delete all discussions that I don't like) -- and this forum still exists because I want it to exist. Some say it's called "patience" -- God is giving the humanity lots of time, and all the while, he is saying through prophecies that the time is nearing its end, and the "wicked" will receive their price.[1] > http://bisqbot.stc.cx/kjvquote/eph1:11-12.php > And here, "who worketh _all_ things after the counsel of his own will". > Not "who worketh _all things except for your sins_ after the counsel of his own will". The verses you quoted are from Paul's letter to the Ephesians, and as such, they are not legal text, but human communication. The word "all" in that context is not to be interpreted as if it meant every single thing in the existence -- that would contradict the rest of the message of the Bible, including the thing about free will, for instance. Rather, it tells us that whatever happens in the world, behind all of it is God's scheme. Indeed, nothing can stop God's plans. He sometimes uses the actions of non-believers as parts of his plans, even though those individual actions do not agree with his will. How is that possible? Read here. > http://bisqbot.stc.cx/kjvquote/act2:22-24.php?hl=23 > Reinforcing my conclusion from the Matthew passage. It's like playing Chess or Go with a much superior player. When you play the game, would you say that you don't have free will, to choose where you will play? Of course you have: you play the game according to your your desires, your own ideas. Yet, the superior player will lead you around the board and beat you with ease, and you will fall into traps you dug yourself. The same is with God's will. Your actions may not follow God's will, but when God has set up a plan, his will always happens. That does not make your individual actions any more God's will, but in the bigger picture, nothing can stop God's will from happening. > http://bisqbot.stc.cx/kjvquote/mat26:36-44.php?hl=39,42 > Presumably*, God[the Father]'s will was done like Jesus prayed. > So God's will was that some dudes murder an innocent man. Murdering > an innocent man is a sin. God's will was that some dudes sin. > > * http://bisqbot.stc.cx/kjvquote/dan4:35.php > No one can stop him from doing his will. Plus, Jesus asked the Father > to do his will, so Jesus wasn't even trying to stop the Father. The whole reason Jesus was born in the world was that his sinless life would be sacrificed for the sins of the mankind[2]. So yes, it was God's will that he died a criminal death while being completely innocent. However, was it because God wanted it to be so, that people would murder an innocent man, or was it that God used those men as part of his plan because they would just do that under their own will, like a skillful Go player would utilize their opponent's actions for their own advantage? We will never know. We only know that God knew that centuries ahead [3]. > http://bisqbot.stc.cx/kjvquote/psa33:13-15.php?hl=15 > The LORD is fashioning our hearts. That is actually the same thing as what I was talking about in my earlier posts. When one chooses to repent their sins, he will give them a new heart [4]. > http://bisqbot.stc.cx/kjvquote/exo10:27.php > The LORD is taking action here. This is by far the most vexing of your quotes, and I had to search for explanations. I found this page:
http://www.pbministries.org/books/pink/Gleanings_Exodus/exodus_10.htm wrote:
"And I will harden Pharaoh’s heart, and multiply My signs and My wonders in the land of Egypt" (v. 3). This verse brings before us one of the most solemn truths revealed in the Holy Scriptures—the Divine hardening of human hearts. At no point, perhaps, has the slowness of man to believe all that the prophets have spoken been more lamentably manifested than here. The hardening of Pharaoh’s heart by God has been eagerly seized by His enemies to make an attack upon the citadel of truth. Infidels have argued that if Pharaoh’s subsequent crimes were the result of his heart being hardened by Jehovah, then that makes God the author of his sins; and, furthermore, God must be very unrighteous in punishing him for them. The sad thing is that so many of the profess servants of God have, instead of faithfully maintaining the integrity of God’s Word, attempted to blunt its keen edge in order to make it more acceptable to the carnal mind. Instead of acknowledging with fear and trembling that God’s Word does teach that the Lord actually hardened the heart of Pharaoh, most of the commentators have really argued that He did nothing of the kind, that He simply permitted the Egyptian monarch to harden his own heart. That Pharaoh did harden his own heart the Scriptures expressly affirm, but they also declare that THE LORD hardened his heart too, and clearly this is not one and the same thing, or the two different expressions would not have been employed. In Psalm 105:25 it is said, "He turned their hearts to hate His people, to deal subtlety with His servants". Nothing could be stronger or plainer than this. Are we to deny it because we cannot explain the way in which God did it? <...> It should be pointed out that the case of Pharaoh and the Egyptians does not by any means stand alone in the Holy Scriptures. In Deuteronomy 2:30 Moses records the fact that "Sihon king of Heshbon would not let us pass by him: for the Lord thy God hardened his spirit, and made his heart obstinate, that He might deliver him into thy hand".
Reading further, it becomes clear that the author thinks that this is such a difficult question that it should not even be discussed. I disagree, so I do some more searching.
http://members.aol.com/twarren13/pharaoh.html wrote:
Some have even stated that this action means that God made Pharaoh sin, implying that God did evil. While we may understand the confusion, we certainly cannot condone such an unrighteous conclusion. God makes no man sin, but the episode does pose some interesting questions. <...> But the truth is, the Lord was not making Pharaoh do evil, the Lord was "allowing" him to do evil. That's an important distinction that changes the whole picture. Pharaoh (as is all of mankind) was by nature desperately wicked.
This article comes to the very conclusion that the previous article was emphasizing to avoid, so for the sake of honesty, we must ignore it and search further.
http://www.answers2prayer.org/bible_questions/Answers/choice/harden.html wrote:
Could pharaoh have repented during these plagues and been saved? Absolutely, as the book of Exodus clearly indicates that those plagues had an impact on the people of Egypt as when the Exodus occurred, Ex 12:38 “Many other people went up with them.” Even pharaoh’s magicians confessed: Ex 8:19 "This is the finger of God." But Pharaoh's heart was hard and he would not listen, just as the LORD had said. But pharaoh is the one who resisted the Lord! Now from plague 6 and on, the Bible always attributes the hardening of pharaoh’s heart to God. Why? Pharaoh had plenty of opportunities to repent and give his heart to the Lord. But there is a point where one crosses the road to perdition and no return seems possible, as one refuses to listen to the Lord. At that moment, God leaves you to your own devices and you suffer the consequences. If only one would listen to God’s voice, He would welcome one back, not as a stranger, but as a son of His. This is confirmed in Ps 81:8 “Hear, O my people, and I will warn you--if you would but listen to me, O Israel!” The Lord longs for a relationship with you. He desires your happiness! But how can you be blessed if you have turned your back to God and go forward in your evil desires? What happens when you don’t listen to your loving Heavenly Father? Ps 81:11-12 "But my people would not listen to me; Israel would not submit to me. So I gave them over to their stubborn hearts to follow their own devices.” He gives you over to your stubborn heart to follow your own evil devices. He takes full responsibility. He wants you to turn away from your path of self-destruction, but He won’t force you. The choice is really yours. This is what is meant by hardening pharaoh’s heart.
At least this article answers the question. In the light of this answer, it can be seen how all three interpretations are correct. God does not force a man either way, and in this situation, Pharaoh rejected God's will that he has already got on his heart to follow, so God gave back the Pharaoh's own heart, and with that heart, the Pharaoh did his bad things again. The word "heart" here of course refers to the mind and feelings, not the blood pumping organ... 1) Of course comparing God's wisdom to my maintaining of this forum is not a perfect allegory in all aspects :) 2) http://en.wikipedia.org/wiki/Messiah#Christianity 3) http://www.christiananswers.net/dictionary/messianicprophecies.html 4) Ezek. 11:19-21, 36:26-27