repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
Ludii | Ludii-master/Core/src/game/rules/start/forEach/package-info.java | /**
* The {\tt forEach} rules to initially run many starting rules in modifying a
* value parameter.
*/
package game.rules.start.forEach;
| 141 | 22.666667 | 78 | java |
Ludii | Ludii-master/Core/src/game/rules/start/forEach/player/ForEachPlayer.java | package game.rules.start.forEach.player;
import java.util.BitSet;
import annotations.Hide;
import game.Game;
import game.functions.intArray.IntArrayFunction;
import game.rules.start.StartRule;
import other.concept.Concept;
import other.context.Context;
import other.context.EvalContextData;
/**
* Applies a move for ... | 4,326 | 20.635 | 93 | java |
Ludii | Ludii-master/Core/src/game/rules/start/forEach/site/ForEachSite.java | package game.rules.start.forEach.site;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.functions.booleans.BooleanConstant;
import game.functions.booleans.BooleanFunction;
import game.functions.region.RegionFunction;
import game.rules.sta... | 3,984 | 24.382166 | 88 | java |
Ludii | Ludii-master/Core/src/game/rules/start/forEach/team/ForEachTeam.java | package game.rules.start.forEach.team;
import java.util.BitSet;
import annotations.Hide;
import game.Game;
import game.rules.start.StartRule;
import gnu.trove.list.array.TIntArrayList;
import other.concept.Concept;
import other.context.Context;
import other.context.EvalContextData;
/**
* Applies a move for each val... | 2,810 | 20.458015 | 76 | java |
Ludii | Ludii-master/Core/src/game/rules/start/forEach/value/ForEachValue.java | package game.rules.start.forEach.value;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import game.Game;
import game.functions.ints.IntFunction;
import game.rules.start.StartRule;
import other.concept.Concept;
import other.context.Context;
import other.context.EvalContextData;
/**
* Appl... | 4,103 | 21.8 | 132 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/Place.java | package game.rules.start.place;
import annotations.Name;
import annotations.Opt;
import annotations.Or;
import annotations.Or2;
import game.Game;
import game.functions.ints.IntFunction;
import game.functions.region.RegionFunction;
import game.rules.Rule;
import game.rules.start.StartRule;
import game.rules.start.place... | 10,007 | 32.249169 | 118 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/PlaceRandomType.java | package game.rules.start.place;
/**
* Defines properties that can be place randomly in the starting rules.
*/
public enum PlaceRandomType
{
/** To randomly place components. */
Random,
}
| 192 | 16.545455 | 71 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/PlaceStackType.java | package game.rules.start.place;
/**
* Defines properties that can be place as a stack in the starting rules.
*/
public enum PlaceStackType
{
/** To place a stack. */
Stack,
}
| 180 | 15.454545 | 73 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/package-info.java | /**
* The {\tt place} rules to initially place items into playing sites.
*/
package game.rules.start.place;
| 110 | 21.2 | 69 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/item/PlaceItem.java | package game.rules.start.place.item;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.equipment.component.Component;
import game.equipment.container.Container;
import game.functions.ints.IntConstant;
import game.functions.ints.IntFunction... | 21,561 | 26.502551 | 112 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/random/PlaceRandom.java | package game.rules.start.place.random;
import java.util.Arrays;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.equipment.component.Component;
import game.functions.ints.IntConstant;
import game.functions.ints.IntFunction;
import game.fu... | 12,438 | 26.398678 | 174 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/stack/PlaceCustomStack.java | package game.rules.start.place.stack;
import java.util.Arrays;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import annotations.Or;
import game.Game;
import game.equipment.component.Component;
import game.equipment.container.Container;
import game.functions.ints.In... | 12,609 | 27.400901 | 114 | java |
Ludii | Ludii-master/Core/src/game/rules/start/place/stack/PlaceMonotonousStack.java | package game.rules.start.place.stack;
import java.util.Arrays;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.equipment.component.Component;
import game.equipment.container.Container;
import game.functions.ints.IntConstant;
import game.... | 12,927 | 27.165577 | 106 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/Set.java | package game.rules.start.set;
import annotations.Name;
import annotations.Opt;
import annotations.Or;
import annotations.Or2;
import game.Game;
import game.functions.booleans.BooleanFunction;
import game.functions.ints.IntFunction;
import game.functions.region.RegionFunction;
import game.rules.Rule;
import game.rules.... | 9,516 | 26.909091 | 99 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/SetRememberValueType.java | package game.rules.start.set;
/**
* Defines properties that can be set in the starting rules to remember a value.
*/
public enum SetRememberValueType
{
/** To remember a value. */
RememberValue,
} | 201 | 19.2 | 80 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/SetStartGraphType.java | package game.rules.start.set;
/**
* Defines properties that can be set in the starting rules that do require only
* the graph element type.
*/
public enum SetStartGraphType
{
/** Makes all items invisible to all players. */
AllInvisible,
}
| 246 | 19.583333 | 80 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/SetStartHiddenType.java | package game.rules.start.set;
/**
* Defines the types of hidden information that can be set in the starting rule.
*/
public enum SetStartHiddenType
{
/** Sets the hidden information of a location. */
Hidden,
} | 214 | 20.5 | 80 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/SetStartPlayerType.java | package game.rules.start.set;
/**
* Defines the player properties that can be set in the starting rules.
*/
public enum SetStartPlayerType
{
/** Sets the initial amount for a player. */
Amount,
/** Sets the initial score of a player. */
Score,
}
| 254 | 17.214286 | 71 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/SetStartPlayersType.java | package game.rules.start.set;
/**
* Defines the properties related to players that can be set in the starting rules.
*/
public enum SetStartPlayersType
{
/** Sets a team of players. */
Team,
}
| 198 | 17.090909 | 83 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/SetStartSitesType.java | package game.rules.start.set;
/**
* Defines the properties of board sites that can be set in the starting rules.
*/
public enum SetStartSitesType
{
/** Sets the count of a site or region. */
Count,
/** Sets the cost of a site or region. */
Cost,
/** Sets the phase of a site or region. */
Phase,
}
| 309 | 17.235294 | 79 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/package-info.java | /**
* The {\tt (set ...)} start `super' ludeme sets some aspect of the initial game
* state. This can include initial scores for players, initial teams, starting
* amounts, etc.
*/
package game.rules.start.set;
| 215 | 29.857143 | 80 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/hidden/SetHidden.java | package game.rules.start.set.hidden;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.functions.booleans.BooleanConstant;
import game.functions.booleans.BooleanFunction;
import game.functions.ints.IntConstant;
import game.functions.ints.I... | 14,595 | 28.192 | 141 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/player/SetAmount.java | package game.rules.start.set.player;
import java.util.BitSet;
import annotations.Hide;
import annotations.Opt;
import game.Game;
import game.functions.ints.IntFunction;
import game.rules.start.StartRule;
import game.types.play.RoleType;
import game.types.state.GameType;
import other.action.state.ActionSetAmount;
impo... | 3,557 | 20.433735 | 78 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/player/SetScore.java | package game.rules.start.set.player;
import java.util.BitSet;
import annotations.Hide;
import annotations.Opt;
import game.Game;
import game.functions.ints.IntFunction;
import game.rules.start.StartRule;
import game.types.play.RoleType;
import game.types.state.GameType;
import other.action.state.ActionSetScore;
impor... | 4,906 | 23.292079 | 90 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/players/SetTeam.java | package game.rules.start.set.players;
import java.util.BitSet;
import annotations.Hide;
import game.Game;
import game.functions.ints.IntFunction;
import game.rules.start.StartRule;
import game.types.play.RoleType;
import game.types.state.GameType;
import other.action.state.ActionAddPlayerToTeam;
import other.concept.... | 5,177 | 23.424528 | 95 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/remember/SetRememberValue.java | package game.rules.start.set.remember;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import annotations.Or;
import game.Game;
import game.functions.booleans.BooleanConstant;
import game.functions.booleans.BooleanFunction;
import game.functions.ints.IntFunction;
imp... | 4,690 | 26.115607 | 104 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/sites/SetCost.java | package game.rules.start.set.sites;
import java.util.BitSet;
import annotations.Hide;
import annotations.Opt;
import annotations.Or;
import game.Game;
import game.functions.ints.IntFunction;
import game.functions.region.RegionFunction;
import game.rules.start.StartRule;
import game.types.board.SiteType;
import main.S... | 3,773 | 22.296296 | 90 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/sites/SetCount.java | package game.rules.start.set.sites;
import java.util.BitSet;
import annotations.Hide;
import annotations.Opt;
import annotations.Or;
import game.Game;
import game.functions.ints.IntFunction;
import game.functions.region.RegionFunction;
import game.rules.start.StartRule;
import game.types.board.SiteType;
import game.t... | 5,470 | 25.177033 | 170 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/sites/SetPhase.java | package game.rules.start.set.sites;
import java.util.BitSet;
import annotations.Hide;
import annotations.Opt;
import annotations.Or;
import game.Game;
import game.functions.ints.IntFunction;
import game.functions.region.RegionFunction;
import game.rules.start.StartRule;
import game.types.board.SiteType;
import other.... | 3,267 | 22.681159 | 94 | java |
Ludii | Ludii-master/Core/src/game/rules/start/set/sites/SetSite.java | package game.rules.start.set.sites;
import java.util.BitSet;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.equipment.component.Component;
import game.functions.ints.IntFunction;
import game.functions.ints.board.Id;
import game.functions.region.RegionFunction;
... | 11,451 | 24.114035 | 107 | java |
Ludii | Ludii-master/Core/src/game/rules/start/split/Split.java | package game.rules.start.split;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;
import game.Game;
import game.equipment.component.Component;
import game.equipment.container.Container;
import game.equipment.container.other.Deck;
import game.rules.start.StartRule;
import game.types.board.Sit... | 3,947 | 22.927273 | 106 | java |
Ludii | Ludii-master/Core/src/game/rules/start/split/SplitType.java | package game.rules.start.split;
/**
* Defines properties that can be split in the starting rules.
*/
public enum SplitType
{
/** To split a deck of cards. */
Deck,
}
| 171 | 14.636364 | 62 | java |
Ludii | Ludii-master/Core/src/game/rules/start/split/package-info.java | /**
* The {\tt (split ...)} start `super' ludeme to split objects between players.
*/
package game.rules.start.split;
| 120 | 23.2 | 79 | java |
Ludii | Ludii-master/Core/src/game/types/dummy.java | package game.types;
/**
* Hey, dummy, this is a dummy file to trick JavaDoc into picking up this package's package-info.java.
*/
public abstract class dummy
{
// Intentionally blank
}
| 188 | 17.9 | 102 | java |
Ludii | Ludii-master/Core/src/game/types/package-info.java | /**
* @chapter This package defines various types used to specify the behaviour of ludemes.
* Types are constant values denoted in {\tt UpperCamelCase} syntax.
*
* @section These core types define possible combinations of options for various ludemes.
*/
package game.types;
| 289 | 35.25 | 89 | java |
Ludii | Ludii-master/Core/src/game/types/board/BasisType.java | package game.types.board;
/**
* Defines known tiling types for boards.
*
* @author cambolbro
*/
public enum BasisType
{
/** No tiling; custom graph. */
NoBasis,
//--------------- Regular ---------------
/** Triangular tiling. */
Triangular,
/** Square tiling. */
Square,
/** Hexagonal tiling. */
He... | 2,483 | 21.378378 | 102 | java |
Ludii | Ludii-master/Core/src/game/types/board/HiddenData.java | package game.types.board;
/**
* Defines possible data to be hidden.
*
* @author Eric.Piette
*/
public enum HiddenData
{
/** The id of the component on the location is hidden. */
What,
/** The owner of the component of the location is hidden. */
Who,
/** The local state of the location is hidden. */
State,... | 546 | 18.535714 | 67 | java |
Ludii | Ludii-master/Core/src/game/types/board/LandmarkType.java | package game.types.board;
/**
* Defines certain landmarks that can be used to specify individual sites on the board.
*
* @author Eric.Piette
*/
public enum LandmarkType
{
/** The central site of the board. */
CentreSite,
/** The site that is furthest to the left. */
LeftSite,
/** The site that is furthes... | 589 | 18.666667 | 87 | java |
Ludii | Ludii-master/Core/src/game/types/board/PuzzleElementType.java | package game.types.board;
/**
* Defines the possible types of variables that can be used in deduction
* puzzles.
*
* @author Eric.Piette
*/
public enum PuzzleElementType
{
/** A variable corresponding to a cell. */
Cell,
/** A variable corresponding to an edge. */
Edge,
/** A variable corresponding to... | 760 | 16.697674 | 72 | java |
Ludii | Ludii-master/Core/src/game/types/board/RegionTypeDynamic.java | package game.types.board;
/**
* Defines regions which can change during play.
*
* @author cambolbro and Eric.Piette
*/
public enum RegionTypeDynamic
{
/** All the empty sites of the current state. */
Empty,
/** All the occupied sites of the current state. */
NotEmpty,
/** All the sites occupied by a piec... | 576 | 19.607143 | 67 | java |
Ludii | Ludii-master/Core/src/game/types/board/RegionTypeStatic.java | package game.types.board;
/**
* Defines known (predefined) regions of the board.
*
* @author Eric.Piette and cambolbro
*/
public enum RegionTypeStatic
{
/** Row areas. */
Rows,
/** Column areas. */
Columns,
/** All direction areas. */
AllDirections,
/** Hint areas. */
HintRegions,
/** Layers areas. */... | 658 | 15.897436 | 51 | java |
Ludii | Ludii-master/Core/src/game/types/board/RelationType.java | package game.types.board;
import game.util.directions.AbsoluteDirection;
/**
* Defines the possible relation types between graph elements.
*
* @author Eric.Piette
*/
public enum RelationType
{
/** Orthogonal relation. */
Orthogonal,
/** Diagonal relation. */
Diagonal,
/** Diagonal-off relation. */
OffDia... | 1,570 | 20.22973 | 99 | java |
Ludii | Ludii-master/Core/src/game/types/board/ShapeType.java | package game.types.board;
/**
* Defines shape types for known board shapes.
*
* @author Eric.Piette and cambolbro
*/
public enum ShapeType
{
/** No defined board shape. */
NoShape,
/** Custom board shape defined by the user. */
Custom,
/** Square board shape. */
Square,
/** Rectangular board shape. */... | 1,166 | 15.208333 | 108 | java |
Ludii | Ludii-master/Core/src/game/types/board/SiteType.java | package game.types.board;
import java.util.BitSet;
import game.Game;
import game.types.state.GameType;
import other.concept.Concept;
/**
* Defines the element types that make up each graph.
*
* @author Eric.Piette and Matthew Stephenson and cambolbro
*/
public enum SiteType
{
/** Graph vertex. */
Vertex,
/... | 1,799 | 18.78022 | 76 | java |
Ludii | Ludii-master/Core/src/game/types/board/StepType.java | package game.types.board;
/**
* Defines possible ``turtle steps'' for describing walks through adjacent sites.
*
* @author cambolbro and Eric.Piette
*
* @remarks For example, the movement of a Chess knight may be described as {\tt (walkToSites \{ \{F F R F\} \{F F L F\} \})}. Please note that a walk cannot leav... | 473 | 21.571429 | 192 | java |
Ludii | Ludii-master/Core/src/game/types/board/StoreType.java | package game.types.board;
/**
* Defines the different stores for a mancala board.
*
* @author Eric.Piette
*/
public enum StoreType
{
/** No store. */
None,
/** Outer store. */
Outer,
/** Inner store. */
Inner;
}
| 226 | 10.947368 | 52 | java |
Ludii | Ludii-master/Core/src/game/types/board/TilingBoardlessType.java | package game.types.board;
/**
* Defines supported tiling types for boardless games.
*
* @author Eric.Piette
*/
public enum TilingBoardlessType
{
/** Square tiling. */
Square,
/** Triangular tiling. */
Triangular,
/** Hexagonal tiling. */
Hexagonal,
;
}
| 268 | 12.45 | 54 | java |
Ludii | Ludii-master/Core/src/game/types/board/TrackStepType.java | package game.types.board;
//import game.functions.trackStep.TrackStep;
/**
* Defines special steps for describing tracks on the board.
*
* @author cambolbro
*
* @remarks For example, a track may be defined as { 0 N Repeat E End }.
*/
public enum TrackStepType
{
/** Off the track. */
Off,
/** End of the tr... | 454 | 15.25 | 72 | java |
Ludii | Ludii-master/Core/src/game/types/board/TrackType.java | package game.types.board;
/**
* Defines that a track is used.
*
* @author Eric.Piette
*/
public enum TrackType
{
/** Track. */
Track
}
| 143 | 10.076923 | 32 | java |
Ludii | Ludii-master/Core/src/game/types/board/package-info.java | /**
* Board types are constant values for specifying various aspects of the board and its constituent graph elements.
*/
package game.types.board;
| 149 | 29 | 114 | java |
Ludii | Ludii-master/Core/src/game/types/component/CardType.java | package game.types.component;
/**
* Defines possible rank values of cards.
*
* @author Eric.Piette and cambolbro
*/
public enum CardType
{
/** Joker rank. */
Joker( 0, "?"),
/** Ace rank. */
Ace( 1, "A"),
/** Two rank. */
Two( 2, "2"),
/** Three rank. */
Three( 3, "3"),
/** Four rank. */
Fou... | 1,757 | 16.405941 | 81 | java |
Ludii | Ludii-master/Core/src/game/types/component/DealableType.java | package game.types.component;
/**
* Specifies which types of components can be dealt.
*
* @author Eric.Piette
*/
public enum DealableType
{
/** Domino component. */
Dominoes,
/** Card component. */
Cards,
}
| 219 | 12.75 | 52 | java |
Ludii | Ludii-master/Core/src/game/types/component/SuitType.java | package game.types.component;
import java.util.BitSet;
import game.Game;
import metadata.graphics.GraphicsItem;
/**
* Defines the possible suit types of cards.
*
* @author Eric.Piette and cambolbro
*/
public enum SuitType implements GraphicsItem
{
/** Club suit. */
Clubs(1),
/** Spade suit. */
Spades(2),
... | 826 | 13.258621 | 44 | java |
Ludii | Ludii-master/Core/src/game/types/component/package-info.java | /**
* Component types are constant values for specifying various aspects of components in the game.
* These can include pieces, cards, dice, and so on.
*/
package game.types.component;
| 188 | 30.5 | 96 | java |
Ludii | Ludii-master/Core/src/game/types/play/GravityType.java | package game.types.play;
/**
* Defines the possible types of gravity that can occur in a game.
*
* @author Eric.Piette
*/
public enum GravityType
{
/** Gravity corresponding to pieces dropping in a pyramidal tilling. */
PyramidalDrop,
}
| 245 | 17.923077 | 72 | java |
Ludii | Ludii-master/Core/src/game/types/play/ModeType.java | package game.types.play;
/**
* Defines the possible modes of play.
*
* @author cambolbro and Eric.Piette
*/
public enum ModeType
{
/** Players alternate making discrete moves. */
Alternating,
/** Players move at the same time. */
Simultaneous,
/** Simulation game */
Simulation,
}
| 306 | 15.157895 | 49 | java |
Ludii | Ludii-master/Core/src/game/types/play/PassEndType.java | package game.types.play;
/**
* Defines the possible types of ending results if all players are passed their
* turn.
*
* @author Eric.Piette
*/
public enum PassEndType
{
/** The game in a draw. */
Draw,
/** The game does not end. */
NoEnd
}
| 252 | 13.882353 | 79 | java |
Ludii | Ludii-master/Core/src/game/types/play/PinType.java | package game.types.play;
/**
* Defines the possible types of pin that can occur in a game.
*
* @author Eric.Piette
*/
public enum PinType
{
/**
* For Shibumi games, that's not allowed to remove pieces if they are supported
* by more than 1 piece.
*/
SupportMultiple,
}
| 284 | 15.764706 | 80 | java |
Ludii | Ludii-master/Core/src/game/types/play/PrevType.java | package game.types.play;
/**
* Defines the possible previous states to refer to.
*
* @author Eric.Piette
*/
public enum PrevType
{
/** The state corresponding to the previous move. */
Mover,
/** The state corresponding to the previous turn. */
MoverLastTurn
;
}
| 274 | 15.176471 | 53 | java |
Ludii | Ludii-master/Core/src/game/types/play/RepetitionType.java | package game.types.play;
/**
* Defines the possible types of repetition that can occur in a game.
*
* @author cambolbro
*/
public enum RepetitionType
{
/** Situational State repeated within a turn. */
SituationalInTurn,
/** Positional State repeated within a turn. */
PositionalInTurn,
/** State repeated ... | 457 | 19.818182 | 69 | java |
Ludii | Ludii-master/Core/src/game/types/play/ResultType.java | package game.types.play;
/**
* Defines expected outcomes for each game.
*
* @author cambolbro
*
* @remarks Tie means that everybody wins. Draw means that nobody wins.
*/
public enum ResultType
{
/** Somebody wins. */
Win,
/** Somebody loses. */
Loss,
/** Nobody wins. */
Draw,
/** Everybody wins. *... | 450 | 14.033333 | 71 | java |
Ludii | Ludii-master/Core/src/game/types/play/RoleType.java | package game.types.play;
import game.functions.ints.IntConstant;
import game.functions.ints.IntFunction;
import game.functions.ints.board.Id;
import main.Constants;
/**
* Defines the possible role types of the players in a game.
*
* @author cambolbro and Eric.Piette
*
* @remarks Each player will have at least ... | 4,103 | 19.727273 | 128 | java |
Ludii | Ludii-master/Core/src/game/types/play/WhenType.java | package game.types.play;
/**
* Defines when to perform certain tests or actions within a game.
*
* @author cambolbro
*/
public enum WhenType
{
/** Start of a turn. */
StartOfTurn,
/** End of a turn. */
EndOfTurn,
}
| 227 | 14.2 | 66 | java |
Ludii | Ludii-master/Core/src/game/types/play/package-info.java | /**
* Play types are constant values for specifying various aspects of play.
* These are typically to do with the ``start'', ``play'' and ``end'' rules.
*/
package game.types.play;
| 185 | 30 | 76 | java |
Ludii | Ludii-master/Core/src/game/types/state/GameType.java | package game.types.state;
import java.io.Serializable;
import game.Game;
/**
* Defines known characteristics of games.
*
* @author cambolbro and Eric.Piette
*
* @remarks These flags are used to determine which state to choose for a given
* game description.
*/
public interface GameType extends Ser... | 6,687 | 22.384615 | 93 | java |
Ludii | Ludii-master/Core/src/game/types/state/package-info.java | /**
* State types are constant values for specifying various aspects of the current game state.
*/
package game.types.state;
| 127 | 24.6 | 92 | java |
Ludii | Ludii-master/Core/src/game/util/dummy.java | package game.util;
/**
* Hey, dummy, this is a dummy file to trick JavaDoc into picking up this package's package-info.java.
*/
public abstract class dummy
{
// Intentionally blank
}
| 187 | 17.8 | 102 | java |
Ludii | Ludii-master/Core/src/game/util/package-info.java | /**
* @chapter Utilities ludemes are useful support classes used by various other types of ludemes.
*/
package game.util;
| 124 | 24 | 96 | java |
Ludii | Ludii-master/Core/src/game/util/directions/AbsoluteDirection.java | package game.util.directions;
import java.util.BitSet;
import game.functions.directions.Directions;
import game.functions.directions.DirectionsFunction;
import game.types.board.RelationType;
import other.concept.Concept;
/**
* Describes categories of absolute directions.
*
* @author Eric.Piette and cambolbro
* ... | 18,899 | 23.199744 | 129 | java |
Ludii | Ludii-master/Core/src/game/util/directions/CompassDirection.java | package game.util.directions;
import java.util.BitSet;
import game.Game;
/**
* Compass directions.
*
* @author Eric.Piette and cambolbro
*/
public enum CompassDirection implements DirectionFacing
{
/** North. */
N(DirectionUniqueName.N){ @Override public AbsoluteDirection toAbsolute(){ return AbsoluteDirectio... | 5,018 | 23.846535 | 114 | java |
Ludii | Ludii-master/Core/src/game/util/directions/Direction.java | package game.util.directions;
import game.functions.directions.DirectionsFunction;
/**
* The different direction which can be used by some moves.
*
* @author Eric.Piette
*/
public interface Direction
{
/**
* @return The corresponding direction functions.
*/
public DirectionsFunction directionsFunctions();
... | 322 | 18 | 59 | java |
Ludii | Ludii-master/Core/src/game/util/directions/DirectionFacing.java | package game.util.directions;
import other.Ludeme;
/**
* Provides a general ``direction'' description for use in a variety of
* contexts.
*
* @author mrraow and Eric.Piette
*
* @usage Provides an Interface as each basis can have its own set of
* directions.
*/
public interface DirectionFacing extends... | 2,919 | 20.15942 | 77 | java |
Ludii | Ludii-master/Core/src/game/util/directions/DirectionType.java | package game.util.directions;
/**
* Associates a direction to an unique index.
*
* @author Eric.Piette
*/
public class DirectionType
{
/** The unique index of the direction. */
private final int index;
/** The name of the current direction. */
private final DirectionFacing directionActual;
//-------------... | 1,190 | 18.209677 | 76 | java |
Ludii | Ludii-master/Core/src/game/util/directions/DirectionUniqueName.java | package game.util.directions;
import annotations.Hide;
/**
* provides that for efficiency rather than necessity, each direction has a unique name
* @remarks this is the canonical list,
* Feel free to ad extra names as required, but these should be actual directions not filters.
*
* @author mrraow
*/
@Hi... | 1,820 | 13.116279 | 100 | java |
Ludii | Ludii-master/Core/src/game/util/directions/RelativeDirection.java | package game.util.directions;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;
import game.functions.directions.Directions;
import game.functions.directions.DirectionsFunction;
import other.concept.Concept;
//-----------------------------------------------------------------------------
/*... | 13,718 | 23.630162 | 131 | java |
Ludii | Ludii-master/Core/src/game/util/directions/RotationalDirection.java | package game.util.directions;
import java.util.BitSet;
import game.Game;
/**
* Rotational directions.
*
* @author Eric.Piette
*/
public enum RotationalDirection implements DirectionFacing
{
/** Outwards direction. */
Out(DirectionUniqueName.Out){ @Override public AbsoluteDirection toAbsolute(){ return Absolut... | 2,872 | 17.416667 | 114 | java |
Ludii | Ludii-master/Core/src/game/util/directions/SpatialDirection.java | package game.util.directions;
import java.util.BitSet;
import game.Game;
/**
* Describes intercardinal directions extended to 3D.
*
* @author Eric Piette and cambolbro
*
* @remarks Spatial directions are used for 3D tilings such as the Shibumi board.
*/
public enum SpatialDirection implements DirectionFacing... | 5,509 | 26.969543 | 114 | java |
Ludii | Ludii-master/Core/src/game/util/directions/StackDirection.java | package game.util.directions;
/**
* Describes the bottom or the top of a stack as origin for functions.
*
* @author Eric Piette
*/
public enum StackDirection
{
/** To check the stack from the bottom. */
FromBottom,
/** To check the stack from the top. */
FromTop;
}
| 277 | 16.375 | 70 | java |
Ludii | Ludii-master/Core/src/game/util/directions/package-info.java | /**
* Direction utilities define the various types of directions used in game descriptions.
* These include:
* \begin{itemize}
* \item {\it absolute} directions that remain constant in all contexts, and
* \item {\it relative} directions that depend on the player and their orientation.
* \end{itemize}
*/
package... | 343 | 33.4 | 89 | java |
Ludii | Ludii-master/Core/src/game/util/end/Payoff.java | package game.util.end;
import java.util.BitSet;
import game.Game;
import game.functions.floats.FloatFunction;
import game.types.play.RoleType;
import game.types.state.GameType;
import other.BaseLudeme;
/**
* Defines a payoff to set when using the {\tt (payoffs ...)} end rule.
*
* @author Eric.Piette
*/
public c... | 2,610 | 18.631579 | 96 | java |
Ludii | Ludii-master/Core/src/game/util/end/Score.java | package game.util.end;
import java.util.BitSet;
import game.Game;
import game.functions.ints.IntFunction;
import game.types.play.RoleType;
import game.types.state.GameType;
import other.BaseLudeme;
import other.concept.Concept;
/**
* Defines a score to set when using the {\tt (byScore ...)} end rule.
*
* @author... | 2,785 | 18.758865 | 96 | java |
Ludii | Ludii-master/Core/src/game/util/end/package-info.java | /**
* This section describes support utility ludemes relevant to end rules.
*/
package game.util.end;
| 104 | 20 | 72 | java |
Ludii | Ludii-master/Core/src/game/util/equipment/Card.java | package game.util.equipment;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.types.component.CardType;
import main.Constants;
import other.BaseLudeme;
/**
* Defines an instance of a playing card.
*
* @author Eric.Piette
*/
public class Card extends BaseLudeme
{
/**
* The rank of... | 2,513 | 18.19084 | 157 | java |
Ludii | Ludii-master/Core/src/game/util/equipment/Hint.java | package game.util.equipment;
import annotations.Opt;
import other.BaseLudeme;
/**
* Defines a hint value to a region or a specific site.
*
* @author Eric.Piette
* @remarks This is used only for deduction puzzles.
*/
public class Hint extends BaseLudeme
{
/** The hint to put. */
final private Integer hint;
/... | 1,407 | 17.773333 | 76 | java |
Ludii | Ludii-master/Core/src/game/util/equipment/Region.java | package game.util.equipment;
import java.io.Serializable;
import java.util.List;
import annotations.Hide;
import game.Game;
import game.equipment.container.board.Board;
import game.types.board.SiteType;
import game.util.directions.AbsoluteDirection;
import game.util.graph.Step;
import gnu.trove.list.array.TIntArrayLi... | 9,229 | 18.978355 | 111 | java |
Ludii | Ludii-master/Core/src/game/util/equipment/TrackStep.java | package game.util.equipment;
import java.io.Serializable;
import annotations.Hide;
import annotations.Or;
import game.types.board.TrackStepType;
import game.util.directions.CompassDirection;
import other.BaseLudeme;
//-----------------------------------------------------------------------------
/**
* Defines a ste... | 2,852 | 20.613636 | 94 | java |
Ludii | Ludii-master/Core/src/game/util/equipment/Values.java | package game.util.equipment;
import game.functions.range.Range;
import game.types.board.SiteType;
import other.BaseLudeme;
/**
* Defines the set of values of a graph variable in a deduction puzzle.
*
* @author Eric.Piette
*/
public class Values extends BaseLudeme
{
/** The graph element type. */
final private ... | 972 | 16.690909 | 76 | java |
Ludii | Ludii-master/Core/src/game/util/equipment/package-info.java | /**
* Ludeme utilities are useful support classes that various types of ludeme classes refer to.
*/
package game.util.equipment;
| 131 | 25.4 | 93 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Bucket.java | package game.util.graph;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Bucket for sorting coordinates along a dimension.
*
* @author cambolbro
*/
public class Bucket
{
private final List<ItemScore> items = new ArrayList<ItemScore>();
private double total = 0; // item t... | 977 | 18.176471 | 76 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Edge.java | package game.util.graph;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;
import game.types.board.SiteType;
import game.util.directions.AbsoluteDirection;
import main.math.Point3D;
import main.math.Vector;
//-----------------------------------------------------------------------------
/**... | 11,526 | 19.920145 | 103 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Face.java | package game.util.graph;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.List;
import game.types.board.SiteType;
import game.util.directions.AbsoluteDirection;
import main.math.MathRoutines;
import main.math.Point3D;
//----------------... | 13,097 | 23.077206 | 100 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Graph.java | package game.util.graph;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.List;
import annotations.Hide;
import annotations.Name;
import annotations.Opt;
import game.Game;
import game.functions.graph.Bas... | 56,448 | 23.966387 | 125 | java |
Ludii | Ludii-master/Core/src/game/util/graph/GraphElement.java | package game.util.graph;
import java.awt.geom.Point2D;
import java.util.List;
import game.types.board.BasisType;
import game.types.board.ShapeType;
import game.types.board.SiteType;
import main.Constants;
import main.math.Point3D;
//-----------------------------------------------------------------------------
/**
... | 4,183 | 17.932127 | 80 | java |
Ludii | Ludii-master/Core/src/game/util/graph/ItemScore.java | package game.util.graph;
/**
* Helper class for reordering graph elements.
* @author cambolbro
*/
public class ItemScore implements Comparable<ItemScore>
{
private final int id;
private final double score;
//-------------------------------------------------
/**
* @param id The index.
* @param scor... | 907 | 15.509091 | 55 | java |
Ludii | Ludii-master/Core/src/game/util/graph/MeasureGraph.java | package game.util.graph;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import game.types.boar... | 41,052 | 27.708392 | 122 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Perimeter.java | package game.util.graph;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.List;
//-----------------------------------------------------------------------------
/**
* Vertex perimeter of a connected component in a graph.
*
* @author ... | 2,980 | 20.292857 | 79 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Poly.java | package game.util.graph;
import annotations.Name;
import annotations.Opt;
import game.functions.dim.DimFunction;
import main.math.Polygon;
import other.BaseLudeme;
//-----------------------------------------------------------------------------
/**
* Defines a polygon composed of a list of floating point (x,y) pairs... | 1,910 | 22.304878 | 79 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Properties.java | package game.util.graph;
import main.Constants;
//-----------------------------------------------------------------------------
/**
* Record of graph element properties.
*
* @author cambolbro
*/
public class Properties
{
//-------------------------------------------------------------------------
/** Whether ... | 8,489 | 24.419162 | 79 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Radial.java | package game.util.graph;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.List;
import game.util.directions.AbsoluteDirection;
import main.math.MathRoutines;
//-----------------------------------------------------------------------------
/**
* Sequence of steps in a direction.
*
* @aut... | 5,880 | 21.192453 | 95 | java |
Ludii | Ludii-master/Core/src/game/util/graph/Radials.java | package game.util.graph;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.List;
import game.types.board.SiteType;
import game.util.directions.AbsoluteDirection;
import main.math.MathRoutines;
//------------------------------------------------------------------------... | 10,777 | 24.006961 | 97 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.