Go Back   Science Forums > Special forums > Competitions
Reply
 
LinkBack Thread Tools
Old 06-14-2007   #31 (permalink)
chendoh's Avatar
chendoh
Guest


 



Re: Competition status after 8 days

Quote:
Originally Posted by CraigD View Post
I made an additional code change to un-uglify it, eliminating the redundant calculations, posted the fixed code were the unfixed appeared in post #1,

If I understand correctly, the code box in post #1 is new and improved, so, get rid of the code I have been using, and plug-in the new and improved?
Reply With Quote
Old 06-14-2007   #32 (permalink)
CraigD's Avatar
Creating

Administrator
Editor

Location:
Silver Spring, MD, USA
 
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
 



Not Ranked  0 score     
Red face Life is a beta test …

Quote:
Originally Posted by chendoh View Post
If I understand correctly, the code box in post #1 is new and improved, so, get rid of the code I have been using, and plug-in the new and improved?
Yes – though “new and debugged” would be a better description.

Repeating the procedure you followed to load and save the original code do the job.

Though the bug doesn’t appear to affect many simulation runs of the “bowling alley”, it effects enough of them that you should mistrust results obtained from the old code.

All of life is a beta test …


----------------
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Old 06-14-2007   #33 (permalink)
chendoh's Avatar
chendoh
Guest


 



Re: Life is a beta test …

Quote:
Originally Posted by CraigD View Post
Yes – though “new and debugged” would be a better description.
My apoligies, old slang....That belongs in the "Do you remember"
thread......
Now where's that scorecard?
Reply With Quote
Old 06-15-2007   #34 (permalink)
freeztar's Avatar
M.C. Grillmeister

Moderator
Editor
Basic Subscription
Sponsor

Location:
ATL, GA, USA
Latest blog entry:
 
freeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond repute
 



Not Ranked  0 score     
Re: (after bug fix) 5 pins left, 10 pins left - no win

Quote:
Originally Posted by CraigD View Post
left all ten pins – a true “gutter ball”:
Code:
   c                               d
 
                               f
 
 
 
 
 
                   1
 
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:0

   c                               d
 
 
 
 
 
 
 
                   1
                                  f
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:1.25

   c                               d
 
 
 
 
 
 
 
                   1
 
               2       3
 
           4       5       6
 
       7       8       9       a
 
   e
Sim T:1.333333333333333343
I forgot the minus sign.
Let's try it again...

Ball mass=1.7
x=8.5
v=(-1.5,3)


----------------
Hypography Science Forums Moderator
---
"There are no passengers on Spaceship Earth. We are all crew." - Marshall McLuhan

"We must not forget that when radium was discovered no one knew that it would prove useful in hospitals. The work was one of pure science. And this is a proof that scientific work must not be considered from the point of view of the direct usefulness of it." - Marie Curie
Reply With Quote
Old 06-15-2007   #35 (permalink)
CraigD's Avatar
Creating

Administrator
Editor

Location:
Silver Spring, MD, USA
 
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
 



Not Ranked  0 score     
3 pins left - no win

Quote:
Originally Posted by freeztar View Post
I forgot the minus sign.
Let's try it again...

Ball mass=1.7
x=8.5
v=(-1.5,3)
Very interesting – no ball contact with the 1 pin (nor, unfortunately between anything and the 1 pin). Left the 1, 8, and 10.
Code:
   c                               d

                                 f





                   1

               2       3

           4       5       6

       7       8       9       a

   e
Sim T:0

   c                               d







                   1
                         f
               2      3

           4       5       6

       7       8       9       a

   e
Sim T:1.220494506428849876

   c                               d







                   1

               2   3      f

           4       5       6

       7       8       9       a

   e
Sim T:1.520657330500272825

   c                               d







                   1
              2
               3         f

           4      5
                            6
       7       8       9       a

   e
Sim T:1.83928483584012753

   c                               d







                   1
              2

            3            f
          4
                  5
       7       8       9     6 a

   e
Sim T:2.110007673355126901

   c                               d







                   1
              2

            3            f
         4

       7       8  5    9       a

   e
Sim T:2.331230756545607822

   c                               d







              2    1

           3
                         f

        4
      7        8  5    9       a

   e
Sim T:2.462843202122834408

   c                               d







              2    1

          3

      4                 f

               8       9       a
     7
   e
Sim T:2.799182380347328782

   c                               d







             2     1

          3

      4                 f

               8       9       a

   e
Sim T:2.935230846449298945

   c                               d






             2
                   1
         3


     4                  f

               8      9        a

   e
Sim T:3.160594880905789525

   c                               d





            2

       3           1




                        f
               8               a
                     9
   e
Sim T:4.009338243279255224

   c                               d




            2

      3
                   1




                        f
               8               a

   e
Sim T:4.533009777017878759

   c                               d


           2




                   1




                        f
               8               a

   e
Sim T:5.828071327319384421

   c                               d







                   1





               8         f     a

   e
Sim T:7.677107475593590691

   c                               d







                   1





               8               a

   e
Sim T:10.64620043929137057


----------------
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Old 06-15-2007   #36 (permalink)
freeztar's Avatar
M.C. Grillmeister

Moderator
Editor
Basic Subscription
Sponsor

Location:
ATL, GA, USA
Latest blog entry:
 
freeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond repute
 



Not Ranked  0 score     
Re: Newtonian Bowling

OT, I was daydreaming and just thought of this type of game, but with billiards! It would be great fun to have a game in progress where whoever,whenever, can come along and take a shot. The winner would be the one who hits the most balls in the pockets. Of course, I have no idea how difficult this would be to simulate, but it doesn't seem like that far of a stretch from the bowling. Just an idea.

And with my favorite ball in hand (I call it "Force") I step up to the line, throw my arm back and then forward, and release...

Ball mass=1.7
x=8.5
v=(-1.25,3)


----------------
Hypography Science Forums Moderator
---
"There are no passengers on Spaceship Earth. We are all crew." - Marshall McLuhan

"We must not forget that when radium was discovered no one knew that it would prove useful in hospitals. The work was one of pure science. And this is a proof that scientific work must not be considered from the point of view of the direct usefulness of it." - Marie Curie
Reply With Quote
Old 06-15-2007   #37 (permalink)
CraigD's Avatar
Creating

Administrator
Editor

Location:
Silver Spring, MD, USA
 
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
 



Not Ranked  0 score     
Unhappy 4 pins left - no win

Quote:
Originally Posted by freeztar View Post
OT, I was daydreaming and just thought of this type of game, but with billiards! It would be great fun to have a game in progress where whoever,whenever, can come along and take a shot. The winner would be the one who hits the most balls in the pockets. Of course, I have no idea how difficult this would be to simulate, but it doesn't seem like that far of a stretch from the bowling. Just an idea.
That shouldn’t be too hard. It would require a couple a new “bumper” body type, an easy addition.

The trick would be adding friction to the “ball” body type. An essential element of a pool game is that the balls eventually stop moving, which, of course, will never happen in a frictionless simulation. A simple uniform acceleration in the opposite direction of the ball’s velocity with a “stop” event at zero velocity should be enough for a reasonably realistic-looking simulation… Sounds like fun – I’ll see if I can do it tonight, or later this weekend

Quote:
And with my favorite ball in hand (I call it "Force") I step up to the line, throw my arm back and then forward, and release...

Ball mass=1.7
x=8.5
v=(-1.25,3)
Good adjustment – it took out the 1 pin. Left the 4, 7, 8, and 10
Code:
   c                               d

                                 f





                   1

               2       3

           4       5       6

       7       8       9       a

   e
Sim T:0

   c                               d







                   1

               2       3 f

           4       5       6

       7       8       9       a

   e
Sim T:1.4369955981006127

   c                               d







                   1
                      3
               2         f

           4       5       6

       7       8       9       a

   e
Sim T:1.454533916821456982

   c                               d







                   1
                    3
               2

           4       5   f

       7       8      9      6 a

   e
Sim T:1.960168411703652255

   c                               d







                   1
                   3
               2

           4       5  f

       7       8               a
                      9
   e
Sim T:2.201176293766480755

   c                               d






                   1
                   3

               2

           4       5 f

       7       8               a
                      9
   e
Sim T:2.294675071470479173

   c                               d






                  1

                  3
               2
                  5
           4         f

       7       8               a
                      9
   e
Sim T:2.34579719391154908

   c                               d






                  1

                  3
               2
                  5
           4         f

       7       8               a

   e
Sim T:2.380138884856690461

   c                               d






                  1

               3
               2
                5
           4
                   f
       7       8               a

   e
Sim T:3.070475142422318752

   c                               d





                  1

             3

              2
               5
           4

       7       8  f            a

   e
Sim T:3.37438285889799684

   c                               d




                  1


        3   2


              5
           4

       7       8               a

   e
Sim T:4.631445773150469158

   c                               d


                  1



          2




           4 5

       7       8               a

   e
Sim T:5.779230158156360029

   c                               d


   2








           4

       7 5     8               a

   e
Sim T:8.900663434423030335

   c                               d











           4

       7       8               a
         5
   e
Sim T:9.192619205512951801

   c                               d











           4

       7       8               a

   e
Sim T:10.56154117855066968


----------------
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Old 06-15-2007   #38 (permalink)
freeztar's Avatar
M.C. Grillmeister

Moderator
Editor
Basic Subscription
Sponsor

Location:
ATL, GA, USA
Latest blog entry:
 
freeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond repute
 



Not Ranked  0 score     
Re: 4 pins left - no win

Quote:
Originally Posted by CraigD View Post
That shouldn’t be too hard. It would require a couple a new “bumper” body type, an easy addition.

The trick would be adding friction to the “ball” body type. An essential element of a pool game is that the balls eventually stop moving, which, of course, will never happen in a frictionless simulation. A simple uniform acceleration in the opposite direction of the ball’s velocity with a “stop” event at zero velocity should be enough for a reasonably realistic-looking simulation… Sounds like fun – I’ll see if I can do it tonight, or later this weekend
Somehow I knew you'd be into the idea.
I have some other ideas for it as well (friction is a must of course). Since numbered balls are not needed (assuming it's just a game of try to hit a ball in), perhaps the symbology can be changed a bit in the ASCII? Perhaps an "x" for the cue ball and an "o" for all the other balls. It would be easier to estimate angles, imo. It might also be easier to create a table with only four pockets (one in each corner).
Cheers for your efforts!

Quote:
Good adjustment – it took out the 1 pin. Left the 4, 7, 8, and 10
Well my goal was accomplished because I wanted that 1 pin. Unfortunately, I'm still not getting it quite right. I think my ball mass is too low so it's not having much movement after a few encounters with "pins" (at least from what I can judge by the snapshot positions). So this time:

ball mass=1.8
x=8.5
v=(-1.25,3)


----------------
Hypography Science Forums Moderator
---
"There are no passengers on Spaceship Earth. We are all crew." - Marshall McLuhan

"We must not forget that when radium was discovered no one knew that it would prove useful in hospitals. The work was one of pure science. And this is a proof that scientific work must not be considered from the point of view of the direct usefulness of it." - Marie Curie
Reply With Quote
Old 06-15-2007   #39 (permalink)
CraigD's Avatar
Creating

Administrator
Editor

Location:
Silver Spring, MD, USA
 
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
 



Not Ranked  0 score     
Unhappy 1 pin left - no win

Quote:
Originally Posted by freeztar View Post
Somehow I knew you'd be into the idea.
I have some other ideas for it as well (friction is a must of course). Since numbered balls are not needed (assuming it's just a game of try to hit a ball in), perhaps the symbology can be changed a bit in the ASCII? Perhaps an "x" for the cue ball and an "o" for all the other balls.
It’s very easy to add different interfaces to the core simulator code, so minor changes to the ASCII are no problem. With a bit of html ingenuity, it should be possible to render some simple graphics. One of my key ambitions is to write a generic GIF or similar graphics format renderer in ANSI-standard MUMPS – I’ve been getting “rumors from the top” that I may soon get a chance to do this at work
Quote:
Well my goal was accomplished because I wanted that 1 pin. Unfortunately, I'm still not getting it quite right. I think my ball mass is too low so it's not having much movement after a few encounters with "pins" (at least from what I can judge by the snapshot positions). So this time:

ball mass=1.8
x=8.5
v=(-1.25,3)
The slight ball mass increase was significant. Only the 10 pin left – and the 6 came close to getting the 10 after its collision with the ball.
Code:
   c                               d

                                 f





                   1

               2       3

           4       5       6

       7       8       9       a

   e
Sim T:0

   c                               d







                   1

               2       3 f

           4       5       6

       7       8       9       a

   e
Sim T:1.4369955981006127

   c                               d







                   1
                      3
               2         f

           4       5       6

       7       8       9       a

   e
Sim T:1.45533533558412979

   c                               d







                   1
                    3
               2

           4       5   f

       7       8      9      6 a

   e
Sim T:1.951896949917645616

   c                               d







                   1
                   3
               2

           4       5  f

       7       8               a
                      9
   e
Sim T:2.185452411139611041

   c                               d






                   1
                   3

               2

           4       5 f

       7       8               a
                      9
   e
Sim T:2.316420653730639343

   c                               d






                  1

                   3
               2
                  5
           4         f

       7       8               a
                      9
   e
Sim T:2.322727638320321595

   c                               d






                  1

                  3
               2
                  5
           4         f

       7       8               a

   e
Sim T:2.359013726995956065

   c                               d






                  1

               3
               2
                5
           4

       7       8   f           a

   e
Sim T:3.083658749841490086

   c                               d





                  1

              3

              2 5

           4

       7       8  f            a

   e
Sim T:3.334724309435983317

   c                               d





                  1

             3
              2

               5
           4

       7      8  f             a

   e
Sim T:3.61339115351040725

   c                               d




                  1


          3
            2

               5
           4
              8
       7                       a

   e
Sim T:4.324471978605371914

   c                               d


                  1



      2




           4  5
            8
       7                       a

   e
Sim T:6.130134771817362993

   c                               d

                  1



     2





           8
              5
       7                       a

   e
Sim T:6.776911083059362577

   c                               d
                  1









          4

           8  5
       7                       a

   e
Sim T:7.529689810447353354

   c                               d










          4

          8
       7     5                 a

   e
Sim T:8.891296845722150753

   c                               d









         4


        8
       7                       a

   e
Sim T:10.54110253531142023

   c                               d









         4


        8
      7                        a

   e
Sim T:10.75490125692885145

   c                               d






       4




        8

                               a

   e
Sim T:17.00727985720945931

   c                               d










      8


                               a

   e
Sim T:32.2849296346853025

   c                               d













                               a

   e
Sim T:63.71596461652395272


----------------
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Old 06-15-2007   #40 (permalink)
freeztar's Avatar
M.C. Grillmeister

Moderator
Editor
Basic Subscription
Sponsor

Location:
ATL, GA, USA
Latest blog entry:
 
freeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond repute
 



Not Ranked  0 score     
Re: Newtonian Bowling

That was close!

Now it is a matter of determining whether small changes will be able to hit the ten, or whether it will offset the other interactions in a negative manner. I'm hoping that an increase in vertical velocity will create a slightly different angle (and of course speed) resulting in a guttered 10 ("a") with no significant differences from last throw expressed throughout the rest of the pins' fates.

ball mass=1.8
x=8.5
v=(-1.25,3.1)


----------------
Hypography Science Forums Moderator
---
"There are no passengers on Spaceship Earth. We are all crew." - Marshall McLuhan

"We must not forget that when radium was discovered no one knew that it would prove useful in hospitals. The work was one of pure science. And this is a proof that scientific work must not be considered from the point of view of the direct usefulness of it." - Marie Curie
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newtonian mechanics kolahal_b Science Projects and Homework 0 10-03-2006 02:41 AM
newtonian mechanics kolahal_b Science Projects and Homework 0 08-02-2006 10:25 AM
newtonian mechanics kolahal_b Science Projects and Homework 2 08-01-2006 05:53 AM
Newtonian physics: torque on a planet sun system Tim_Lou Physics and Mathematics 2 05-20-2006 01:20 PM

» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 30.00%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 40.00%
4 Votes
I'm too macho to think a guy is sexy - 30.00%
3 Votes
Total Votes: 10
You may not vote on this poll.


All times are GMT -8. The time now is 04:05 AM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network