This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tu16java | |
package app.tu16; | |
import turtle.*; | |
public class Tu16 extends Playground | |
{ | |
public void playgroundPressed(double x, double y) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package online.app2; | |
import ch.aplu.android.*; | |
import android.graphics.Color; | |
public class TestBorder extends GameGrid | |
{ | |
public TestBorder() | |
{ | |
super(true, windowZoom(200)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ch.aplu.cardex12; | |
import android.graphics.Color; | |
import ch.aplu.jcardgame.*; | |
import ch.aplu.android.*; | |
public class CardEx12 extends CardGame | |
{ | |
public enum Suit { | |
KREUZ, HERZ, KARO, PIK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ch.aplu.cardex12; | |
import android.graphics.Color; | |
import ch.aplu.jcardgame.*; | |
import ch.aplu.android.*; | |
public class CardEx12 extends CardGame | |
{ | |
public enum Suit { | |
KREUZ, HERZ, KARO, PIK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ch.aplu.cardex12; | |
import android.graphics.Color; | |
import ch.aplu.jcardgame.*; | |
import ch.aplu.android.*; | |
public class CardEx12 extends CardGame | |
{ | |
public enum Suit { | |
KREUZ, HERZ, KARO, PIK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void flipCardsBack() { | |
setTouchEnabled(false); // Disable mouse events | |
delay(1000); | |
card1.show(1); // Flip cards back | |
card2.show(1); | |
refresh(); | |
setTouchEnabled(true); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void act() { | |
xVelocity += FACTOR*gg.getXSlope(); | |
yVelocity += FACTOR*gg.getYSlope(); | |
xPos += xVelocity; | |
yPos += yVelocity; | |
setPixelLocation(new Point(Math.round(xPos), Math.round(yPos))); | |
L.d(isInGrid() + " " + getLocation()); | |
if (!isInGrid()) | |
gg.gameOver(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MasterMind.java | |
package app.mastermind1; | |
import ch.aplu.android.*; | |
import android.graphics.*; | |
import java.util.ArrayList; | |
// -----------class ActiveRowMarker ----------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. | |
from i:= 1 until i > n loop | |
from j:= 1 until j > i loop | |
j:= j+1 | |
end | |
i := i*2 | |
end | |
2. | |
from i:= 1 until i > n loop |
NewerOlder