Schlagwort: Avigo

  • René’s Avigo Page: The Bridge Display

    The Bridge Display

    I had some spare hours to write a program that I
    wanted to have on the Avigo. It is sort of a bridge trainer, which deals random
    hands for you and lets you play the hands. Moreover, it can generate random
    hands from sparse descriptions such as AKxxx. The application can be downloaded
    from
    here.
    The
    source
    is also available.

    The display is just big enough for this, as you
    can see in the following hardcopy.

    Usage

    Once you see a hand, you can tap on a card to
    start playing. The program will then draw a rectangle frame around the hand,
    which is to play next. The winner of each trick will be computed and the
    rectangle will go to the winning hand. If the contract is in a suit, you can
    tap on the trump rectangle below the hand to change the trump suit before you

    start playing.

    The menu contains items to undo the last trick,
    or to play the complete hand from start. It also lets you generate a new random
    hand. Before you start playing, you can also turn the hand clockwise.

    A difficult to program feature was generating a
    hand from a hand description. To enter a description, tap on the inpout field
    below. The normal keyboard will open. You might then edit the hand or enter a
    new hand (you can clear the hand description with a menu option). A hand description
    contains several lines, each starting with the hand name (N,O,S,W). Capitalization
    does not matter. You need not provide all hands. You can enter x for
    unimportant small cards. E.g.,

    N AKxxx Kxxx QT KQJ
    S xxx - xxxxx T9xxx

    is a valid hand description. The program will
    compute a hand based on the description, when you choose the corresponding menu
    entry.

    The Source

    The program was sort of a quick hack. For an
    object oriented programmer the rudimentary C of the Avigo is a pain. My pitty
    is with those that program the Avigo in assembler. For this small program
    however, productivity is good enough to get results.

    I probably met some bugs in the C compiler,
    which I overcame by writing very rudimentary C code. E.g. I did not use
    multiple assignments with array members. Also I hard a hard time finding the
    usual programming trapy with = instead of == etc. Anyway, there was some
    strange instability too, which I attribute to the simulator and its inaccurate mouse
    display. Finally the program seemed to run fine.

    For the novice Avigo programmer, it might be
    interesting how I did the card display and the tap recognition. The program
    imports five bitmaps (four suit symbols and one for the ten, which is an icon).
    While drawing the hand, I initialize four arrays (one for each hand) with
    structures, each containing a bounding rectangle for each card and the number
    of the card. When the user tabs on the screen, these rectangles are processed
    to find the card.

    The most critical part was the parser that
    generates hands from descriptions. I did it in one single function, which is
    really not an elegant way to do it. Now that it works, I don’t want to improve
    that design for better readability.

    You will notice a lot of global variables. This
    is not the way to go in a larger project. To me the program looks like a mess. Also
    it is very difficult to keep track of the various states the program is in. For
    this project, the simple approach is good enough though.

    I also had a strange problem with the text
    field. WhenI tried to set a new text, it would only display the first letter. This
    I resolved by starting the creating the object with a hand description and
    clearing it afterwards.

    One more tip! If your simulator hangs (due to an
    eternal loop) break it and press CTRL-F2 to reset it. Then you will not get
    problems after the next compiler run.

  • René’s Avigo Page: The Sun And Moon Calculator

    Sun
    and Moon calculator

    This is a small application computing the sunset
    and sunrise times for any given location, as well as the phase of the moon. The
    methods are low accuracy methods I found in the Internet and as descibed in the
    World Almanac. If you start the program you will find that the Avigo is not
    really a number cruncher. So it takes a while to compute the sunset and rise
    times. Here is a picture from the application as seen in the fabulous freeware
    simulator by G. Vermeugen. See my
    introduction page on tips how
    to use this simulator.

    You can set the local position, which is
    remembered in the application preferences. The default date and time are the
    current ones. The horizon parameter describes the horizon in degrees, which is
    set to -0.8333 for the spherical horizon. Normally, you will use -15 for
    astronomical purposes. Civil twilight ends at -8 degrees. You need to set the
    time zone for your local positions to get the GMT times translated properly.

    You find the application and source code here.

    I needed to program some trigonometric functions
    for this application. So you find sine, cosine and their inverses in the sun
    file. However, all number computations are very slow on the Avigo. Using faster
    algorithms won’t help very much really, but are more work than is rewarding in
    this case. You will also find computations of Julian date in the sun file.

    I actually wanted to do some more astromonical
    things here, but gave up because of the slowness of the double arithmetic.

    There is nothing spectacular about the user
    interface. The only new thing is the saving of preferences, which you will find
    in the main file.

  • tExas News vom 22. Dezember 1999

    Aufgrund der Umstellung auf einen anderen Provider (jetzt habe ich ADSL) gab´s eine Pause bei meinen Infomails.

    Avigo.Web http://www.dominos.purespace.de/avigoweb/ hat ein Update erfahren. Es gibt neue Tips&Tricks sowie auch neue AvigoScreens. Besonders nett finde ich die Fusion zwischen Apple und dem Avigo (Hey Apple, wär das nix, statt einen neuen Newton mit PalmOS einen mit AvigoOS 😉

    Von PMS habe ich eine AvigoPool CD-ROM http://www.pmssystem.de/avigo/avigo_cd.htm bekommen und werde in Kürze einen Testbericht veröffentlichen.

    Die tExasseite wird nächste Woche wieder aktualisiert. Und auch um
    einiges erweitert…….also nicht die nächste Aussendung versäumen.

    Herzlichen Dank für ein weiteres Jahr tExas lesen, Anregungen senden und konstruktive Kritik üben.

    Der Avigo lebt weiter und 2000 wird sicherlich noch ein spannendes Jahr
    mit neuen Applikationen und vielleicht sogar einem neuen oder
    erweiterten AvigoOS.

    Ich wünsche Euch allen ein schönes, friedliches, genüßliches, fröhliches, besinnliches und/oder ausgelassenes Weihnachtsfest.

  • tExas News vom 15. Dezember 1999

    Um mit der Zeit zu gehen (rennen kann man in diesem Fall wirklich nicht
    sagen) und auch ein bißchen layouterisch zu üben (auch nicht sehr
    aufregend habe ich tExas nun auf Frames umgestellt.


    tExas ist weiterhin unter https://web.archive.org/web/20120510182727/http://members.vienna.at:80/lender/avigo/avigo.html erreichbar

    Es gilt aber auch die kürzere Adresse https://web.archive.org/web/20041111040551/http://members.vienna.at:80/lender/avigo/

    Um bei den Umbauarbeiten nicht ganz durcheinanderzukommen habe ich die
    Seite auf dem Stand 27.11.99 belassen. Dieser wird im Laufe der
    nächsten Tage auf den Stand der Zeit gebracht.

    Sollte irgendwas auf der Seite nicht klappen, irgendwelche Links schon
    wieder nicht funktionieren etc. ersuche ich um eine kurze Nachricht.

  • tExas News vom 5. Dezember 1999

    in Kürze: ab 8. Dezember gibts die Avigo CD von PMSSystems. Nähere Infos findet Ihr auf

    https://web.archive.org/web/20020414225608/http://www.pmssystem.de:80/avigo/avigo_cd.htm

  • tExas News vom 30. November 1999

    Avigo Pool https://web.archive.org/web/20010418210407/http://www.pmssystem.de:80/avigo/links.htm hat zwei neue Links auf der Linkseite.

    Blinkys Seite habe ich Euch schon beim letzten mal vorgestellt. My AvigoApps http://www.student.informatik.tu-darmstadt.de/~akoch/apps.htm enthält Beschreibungen zu einigen interessanten Spielen und Applikatonen von Andreas Koch.

    Die Programme selbst findet Ihr wieder bei Avigo Pool (danke Pierre für
    die viele Arbeit nebenbei…neben seiner Haupttätigkeit als Vater.
    Gratulation zum ein Wochen alten Sohn 🙂

    Die angekündigte Avigo CD-ROM von Avigo Pool wird´s geben, unter https://web.archive.org/web/20020413172801/http://www.pmssystem.de:80/avigo.htm findet Ihr die neue Nachricht. Vorweg, ab 8. Dezember beginnt die Produktion

  • tExas News vom 28. November 1999

    tExas hat ein winziges Update erfahren, will heißen im "Speakers Corner" gibts wieder neue Angebote und Nachfragen.

    Neu gestaltet ist auch die Blinky´s Avigo Page mit etlichen Programmen und Tips für Programmierer.

    Ein Grund für Avigoprogrammier zu Avigo Pool zu sehen ist wohl die
    Nachricht "New GUI-Library for the Freeware SDK available" zu finden
    bei http://www.pmssystem.de/avigo.htm

    Die Site Hitchhiker’s Guide to the Avigo OS https://web.archive.org/web/20130101081044/http://home.earthlink.net:80/~rdgill/avigo/ wurde auch vor einer Woche überarbeitet (habe ich leider übersehen).

  • tExas News vom 15. November 1999


    Nachdem ich letztes mal über eine Homepageauflösung berichtet habe. Das
    Internet hat ja den Nachteil, dass Informationen einfach verlorengehen
    können, wenn eine Homepage verschwindet – niemand hat diese
    aufgezeichnet, etc. Deshalb meine Bitte, wer immer eine Avigopage
    auflösen möchte, der trete doch mit mir in Kontakt. Ich möchte entweder
    bei mir Platz für den Erhalt der Seite (ohne weitere Änderungen) oder
    wenigstens für die Infos, Programme, etc. bieten.
  • tExas News vom 14. November 1999

    So! Jetzt gibt es mal ein Update von tExas. Ich hoffe, auch
    jetzt alle E-Mails der letzten drei Wochen beantwortet zu haben. Zu
    meiner Überraschung ist der Handel mit gebrauchen Avigos recht
    florierend. Die Jahreszeit, etc. lässt mich nun kurz nostalgisch
    werden. Vor zwei Jahren (17. November 1997) gab´s die erste
    News-Meldung (siehe Archiv) von tExas.

    Avigo Pool http://www.pmssystem.de/avigo.htm
    bietet nun auch die Version 1.0 von Avigoconnect an. Dieses Programm
    soll den Datenaustausch (mit ein paar Einschränkungen) zwischen dem
    Avigo und Lotus Notes ermöglichen (Heh, das ist doch das Programm, auf
    das einige von Euch gewartet haben!!!). Die Homepage des Programmierers
    lautet: http://www.xs4all.nl/~griethu/

  • tExas News vom 12. November 1999

    Ich hoffe ihr hattet einen guten Faschingsbeginn!

    Avigo Pool http://www.pmssystem.de/avigo.htm
    möchte eine eigene Avigo CD mit allen Avigoprogrammen herausbringen und
    ersucht dabei um Rückmeldungen, ob und was hier von Interesse wäre.
    Feedback bitte unter avigopool@pmssystem.de oder im eigenen
    Diskussionsforum http://www.coolboard.com/boardshow.cfm/mb=432510984076590

    In der AvigoDev Mailinglist fand ich folgende email:

    From: RV405@aol.com

    I’ve just finsih coding the skelton for an Avigo OS…its very similar
    to windows and supports keyboards, files, DLLs, auto-on programs so
    forth…the only thing I left blank in the archtectitre are the
    funametals that I need like writing to the EPROM, screen I/O, com/ir
    port stuff and basically all the hardware…but once i get this info I
    just have to plug it in and my OS is complete. P.S. my OS architecture
    is based upon drivers so all I need to do is make drivers for these
    hardware devices and the OS is done

    Mal sehen ob das etwas wird….Wer dieses Projekt unterstützen möchte, dann schickt eine email an die obig Adresse.

    Rene´s Avigo Page http://mathsrv.ku-eichstaett.de/MGF/homes/grothmann/avigo/ ist
    ist nicht mehr. Aber Rene bietet (habe so ein Service noch nie erlebt) aber
    an (gleiche URL) die gesamte Seite als Zip.Datei (144 KByte)
    downzuloaden. Ihr findet darin einige Programme von Rene, deren
    Beschreibung sowie deren Sourcecode.