Thread: WireWorld

  1. #16
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    oh lol, didnt see the links, i was searching the whole black text for info on that
    signature under construction

  2. #17
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    The only odd thing I found is that the article mentions "8 neighbors" but that screwifies things when an electron approaches a corner (you end up with 2 heads in a row). It seems to work much better when you only count the neighbors at the sides (and not the corners).
    If you understand what you're doing, you're not learning anything.

  3. #18
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    ok, just to make that sure:
    Code:
    TE
     WWW
    TE
    turns into:
    WT
     EWW
    WT
    
    (so the two electrons eventually overlap)
    
    and the case
    TE
     EWW
    WT
    
    turns into
    WT
     EEW
    WW
    
    so one tail is overlapped by a head?
    so my question is if those overlaps are allowed - maybe im thinking too much about nibbles where that would be a crash
    signature under construction

  4. #19
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    ah i think now i understood what they meant by "with the number u..."
    signature under construction

  5. #20
    Registered User
    Join Date
    Oct 2004
    Posts
    151
    Your second one is wrong. You should've had
    Code:
    TE       WT
     EWW  =>  TEW
    WT       WW
    System: Debian Sid and FreeBSD 7.0. Both with GCC 4.3.

    Useful resources:
    comp.lang.c FAQ | C++ FQA Lite

  6. #21
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    yeah, well it was late yesterday - i've already implemented the rules on site that was linked to
    signature under construction

  7. #22
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Can we get some clarification on whether to use 4 neighbors or 8 neighbors for the simulation when determining which pieces of wire turn into electron heads?

    8 neighbors works fine for 45 degree turns in the wire, but when there's a 90 degree turn like in the example file you end up with 2 electron heads in a row.
    Last edited by itsme86; 08-24-2006 at 09:38 AM.
    If you understand what you're doing, you're not learning anything.

  8. #23
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    The animations on the Wolfram site show multiple electron heads at various points.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #24
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    A gun that keeps firing
    Code:
    delay=5
    ..............................
    ..WWWWWWTE....................
    .W........WWWWWWWWWWWWWWWWWWW.
    ..WWWWWWWW....................
    ..............................
    If you understand what you're doing, you're not learning anything.

  10. #25
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    it's a clock, not a gun.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  11. #26
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Okay, this is fun so I've been going kind of nuts with this stuff. A really ugly adder:
    Code:
    delay=0
    ....................................
    ..WWWWWW............................
    .W......W...........................
    ..WWWW...W..........................
    ......W...W.........................
    ..TEWW.....WWWWWWWWWW...............
    ....W................W..............
    ...W....WWWWWW......WWW.WWWWWWWWWWW.
    ..W....W......W.....W..W............
    .W......WWWW...W.....WWW............
    .W..........W...W.....W.............
    .W.TEWWWWWWW.....WWWWW..............
    .W........W...............WWWWWWWWW.
    .W.....WWW..WWW..........W..........
    ..W...W....W...WWWW.....W...........
    ...W...WWWW..W.W...W...W............
    ....W.......WWW..W.W..W.............
    .....WWWWWWW.W.WWWW..W..............
    .................W.WW...............
    ....................................
    Red = Input bits
    Blue = Result
    Green = Carry

    Definitely open to suggestions and critisicm.
    If you understand what you're doing, you're not learning anything.

  12. #27
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    nice! keep this up and we'll have a whole catalogue of circuits by contest end. =) care to make a full adder now?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  13. #28
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Okay, I guess I'll have to learn how to use ncurses if I want to participate. It's about time I did anyway.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  14. #29
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    So you all need a premade map? I know of one, but instead of being 80 by 24 its 631 by 958.

    Enjoy.

  15. #30
    -AppearingOnThis..........
    Join Date
    May 2005
    Location
    Netherlands
    Posts
    44
    Here's a shortened version of a binary counter, if that's of any interest.
    Code:
    delay = 10
    ......WWWWWWW...........WWWWWWW...........WWWWWWW...........WWWWWWW...........WWWWWWW...........WWWWWWW............
    .....W.......W.........W.......W.........W.......W.........W.......W.........W.......W.........W.......W...........
    .....W.W......W........W.W......W........W.W......W........W.W......W........W.W......W........W.W......W..........
    ......WWW......WW.......WWW......WW.......WWW......WW.......WWW......WW.......WWW......WW.......WWW......WW........
    .....W.W.WWW.....W.....W.W.WWW.....W.....W.W.WWW.....W.....W.W.WWW.....W.....W.W.WWW.....W.....W.W.WWW.....W.......
    ....W....W..W....W....W....W..W....W....W....W..W....W....W....W..W....W....W....W..W....W....W....W..W....W.......
    ...W....WWW..W...W...W....WWW..W...W...W....WWW..W...W...W....WWW..W...W...W....WWW..W...W...W....WWW..W...W.......
    ....WWW.W.WWWWW..W....WWW.W.WWWWW..W....WWW.W.WWWWW..W....WWW.W.WWWWW..W....WWW.W.WWWWW..W....WWW.W.WWWWW..W.......
    .......WW.W..W..WWWW.....WW.W..W..WWWW.....WW.W..W..WWWT.....WW.W..W..WWWW.....WW.W..W..WWWW.....WW.W..W..WWWWWWWW.
    .WWWWWW.WW.W.W...W..WWWWW.WW.W.W...W..WWWWW.WW.W.W...W..EWWWW.WW.W.W...W..WWWWW.WW.W.W...W..WWWWW.WW.W.W...W......W
    W.....W....W..WWW.......W....W..WWW.......W....W..WWW.......W....W..WWW.......W....W..WWW.......W....W..WWW.......W
    W.....W...W..W..........W...W..W..........W...W..W..........W...W..W..........W...W..W..........W...W..W..........W
    W.....W..WWW.W..........W..WWW.W..........W..WWW.W..........W..WWW.W..........W..WWW.W..........W..WWW.W..........W
    W....W....W..W.........W....W..W.........W....W..W.........W....W..W.........W....W..W.........W....W..W..........W
    W.....WWWW.W.W..........WWWW.W.W..........WWWW.W.W..........WWWW.W.W..........WWWW.W.W..........WWWW.W.W..........W
    W..........W.W.WWWW..........W.W.WWWW..........W.W.WWWW..........W.W.WWWW..........W.W.WWWW..........W.W.WWWW.....W
    W..........W..W....W.........W..W....W.........W..W....W.........W..W....W.........W..W....W.........W..W....W....W
    W..........W.WWW..W..........W.WWW..W..........W.WWW..W..........W.WWW..W..........W.WWW..W..........W.WWW..W.....W
    W..........W..W...W..........W..W...W..........W..W...W..........W..W...W..........W..W...W..........W..W...W.....W
    W.......WWW..W....W.......WWW..W....W.......WWW..W....W.......WWW..W....W.......WWW..W....W.......WWW..W....W.....W
    W......W...W.W.WW.WWWWW..W...W.W.WW.WWWWW..W...W.W.WW.WWWWW..W...W.W.WW.WWWWW..W...W.W.WW.WWWWW..W...W.W.WW.WWWWWW.
    .WWWWWWWW..W..W.WW.....WWWW..W..W.WW.....WWWW..W..W.WW.....WWWW..W..W.WW.....WWWW..W..W.WW.....WWWW..W..W.WW.......
    .......W..WWWWW.W.WWW....W..WWWWW.W.WWW....W..WWWWW.W.WWW....W..WWWWW.W.WWW....W..WWWWW.W.WWW....W..WWWWW.W.WWW....
    .......W...W..WWW....W...W...W..WWW....W...W...W..WWW....W...W...W..WWW....W...W...W..WWW....W...W...W..WWW....W...
    .......W....W..W....W....W....W..W....W....W....W..W....W....W....W..W....W....W....W..W....W....W....W..W....W....
    .......W.....WWW.W.W.....W.....WWW.W.W.....W.....WWW.W.W.....W.....WWW.W.W.....W.....WWW.W.W.....W.....WWW.W.W.....
    ........WW......WWW.......WW......WWW.......WW......WWW.......WW......WWW.......WW......WWW.......WW......WWW......
    ..........W......W.W........W......W.W........W......W.W........W......W.W........W......W.W........W......W.W.....
    ...........W.......W.........W.......W.........W.......W.........W.......W.........W.......W.........W.......W.....
    ............WWWWWWW...........WWWWWWW...........WWWWWWW...........WWWWWWW...........WWWWWWW...........WWWWWWW......
    Last edited by SirNot; 09-17-2006 at 01:22 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The inner-workings of a uP
    By Cell in forum Tech Board
    Replies: 26
    Last Post: 02-23-2009, 01:54 PM
  2. WireWorld - call for entries
    By Salem in forum Contests Board
    Replies: 8
    Last Post: 10-13-2006, 11:22 PM