quantize your anger

Discussion in 'AutoCAD' started by mataeux, Feb 25, 2004.

  1. mataeux

    mataeux Guest

    (defun c:wordgame(/ input time mean score)
    (prompt "\Enter unique four letter words as fast as you can for a high
    score!")
    (setq mean 1 score 0)
    (while
    (progn(setq time (if input(getvar "TDUSRTIMER"))
    input (cons(getstring)input)
    time (if time (*(-(getvar "TDUSRTIMER")time)1e5)1)
    mean (sqrt (* mean time) )
    )
    (cond
    ((member(car input)(cdr input))
    (prompt "\nyou said that already.")()
    )
    ((/=(strlen(car input))4)
    (prompt "\nthat's not a four letter word.")()
    )
    ((setq score(/ 1.0(*(/ 1.0(length input))mean)))T)
    )
    )
    )
    (prompt(strcat "\nfinal score: "(rtos score 2 6)))
    (princ)
    )


    i feel better
    now back to work
     
    mataeux, Feb 25, 2004
    #1
  2. mataeux

    Robert Davis Guest

    LOL

    --
    Robert Davis
    QC/CMM Dept.


    E.A.S. Manufacturing Co., Inc.
    804 Via Alondra
    Camarillo, Ca 93012
    805-987-3665 Voice
    805-987-7948 Fax
    - General E-Mail
    www.easmfg.com - Web Site
     
    Robert Davis, Feb 26, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.