Penlets.com provides resources for users and developers of the Pulse smart pen from LiveScribe.
Subscribe: RSS Feed - Developers Group
Application
Blackjack
Application by Robert HansonThe classic game of Blackjack has been brought to the Pulse pen. In Blackjack you try to get more points than the dealer without getting more then 21. The house rules are no double-down or splitting (for simplicity), and the dealer stands on a soft 17. Minimum bet is $1, with no maximum. Blackjack pays 3:2 (rounded up).
In order to install this penlet you must first compile, and then install the penlet using the LiveScribe Penlet SDK. At this time LiveScribe prohibits distribution of compiled penlets, per the license that ships with the Pre-Release Penlet SDK.
Game Setup
When the game starts you will be given a set of instructions on the OLED display, each is detailed below. Once you perform the steps once or twice you will be able to run through them in a couple of seconds.
Draw - a box for Yes/Hit - You will first be asked to draw a box for the Yes/Hit button. Technically it doesn't need to be a box, it can be any closed shape that you can draw in a single stroke. Simply draw a box, rectangle, circle, or even a star if you want.
Draw - a box for No/Stay - Same as before, draw another box, again as a single stroke.
Draw - a circle for $1 chips - Draw a circle to represent the pile of chips. As with the boxes, you must draw it in a single stroke.
Draw - a circle for $5 chips - Last shape to draw, almost there.
Decorate - double-tap when complete - This is your chance to decorate the shapes so that you remember what they are for. For example you may want to write a "Y" in the Yes/Draw box, "N" in the Now/Stay box, and "1" and "5" in the circles representing the chips. Double-tab somewhere on the page when you are finished.
Game Play
Place your bets! - This is the first prompt you will see, indicating the start of the game. Tap on your $1 and $5 chips to increment the bet amount, which will be displayed on the OLED display. When you are finished, tap the Yes/Hit button to deal the cards.
Hit? D:X8 P:29 - This is a sample of what you might see in the OLED display after you place your bet. The "D:" indicates the dealer's hand, and the "P:" is the layer's (your) hand. The "X8" in the dealer's hand indicates one face-down card (the "X"), and an "8". If you would like to hit, tap the Yes/Hit square. If you don't go bust you will eventually want to tap the No/Stay square. After you do this, the dealer's cards will be turned up, additional cards may be dealth, and the results will be displayed.
You win: D:K5 P:29J Total = 5 - Hopefully this is what you see in the display when you are done. Your total winnings/loss will be displayed with the results of the hand. Tap the Yes/Hit square to play another hand.
Installation
After downloading and unzipping the source distribution you will need to update the build.xml with the correct value for PENLETSDK_HOME.
To build and install on a pen using Ant:
ant dist ant penlet.install
To remove from the pen using Ant:
ant penlet.undeploy
Comments
If you have comments about the quality, instructions, packaging, or whatever, we want to hear about it. You can either use the commenting feature below or use our contact form.
Comments (View) blog comments powered by DisqusApplication Information
Tested for use with: PDK 0.8
Download the source code for this application.
Download Source Code (zip)
New Applications
Blackjack
Have some down time to fill? How about a game of Blackjack!
U.S.
Capital Trivia
Pit your smarts against your pen in U.S. Capital Trivia! Play the game
or modify to create your own trivia game.
Top Tutorials
Penlets 101
Never written a penlet before? Then start here with Penlets 101!
Using
Intelligent Character Recognition (ICR)
Add some smarts to your smart pen. This tutorial shows you how to
recognize the words that are being written
Capturing Drawn Shapes
Learn how to capture shapes drawn by the pen and determine relationships.