2 |
|
|
3 |
# Helper routines for making "normal" fens |
# Helper routines for making "normal" fens |
4 |
|
|
5 |
|
import java |
6 |
|
|
7 |
from org import fenfire as ff |
from org import fenfire as ff |
8 |
|
from org.nongnu import alph |
9 |
|
from org.nongnu import storm |
10 |
|
|
11 |
def newFen(): |
def newFen(): |
12 |
|
pool = storm.impl.TransientPool(java.util.HashSet()) |
13 |
|
myalph = alph.impl.StormAlph(pool) |
14 |
|
|
15 |
fen = ff.Fen() |
fen = ff.Fen() |
16 |
fen.graph = fen.constgraph = ff.swamp.impl.HashGraph() |
fen.graph = fen.constgraph = ff.swamp.impl.HashGraph() |
17 |
fen.txt = ff.impl.SimpleNodeContent(fen, myalph); |
fen.txt = ff.impl.SimpleNodeContent(fen, myalph); |