Code covered by the BSD License
- BuilderPatch(gridSize, ro...Draws a builder
- BuilderPatch2(X, Y, size,...Draws a pig
- CheckPos(game, tilenum, r...Checks if a tile was placed according to the rules. This means that all
- CheckPuppetPos(row, col, ...Checks whether a puppet was placed according to the rules. If a puppet is
- ClickToPlacePuppet(~, ~, ...Executes when the user clicks while placing a puppet
- ClickWhilePlacing(src,~, ...Executes when the user clicks while placing a tile. A left-click is
- CloseRequest(src,~)
- FindFit(game, TileNum)Checks the entire current field for a fit with the tile identified by
- GetMouseCoords(game)Returns the mouse-coordinates relative to the field-axes (game.axH). When
- GetSide(n, m, player, gam...After placing a tile, GetSide can be called to get the side where the
- KeyPress(~, event, game)KeyPress is the WindowKeyPressFcn for the main figure window. Its purpose
- MonasteryComplete(G, row,...Checks whether a monastery has been completed and if not, how many points
- NeighborIdx(i, side, n)Returns the neigbor-index on side of an element of linear index
- PigPatch(gridSize, row, c...Draws a pig
- PigPatch2(X, Y, size, col...Draws a pig
- PlaceTile(tilenum, game, ...Returns a user-chose row (i) and column (j) where the current tile is to
- PuppetPatch(gridSize, row...Draws a puppet of size of 1/4 * gridSize at the designated position in the current axes.
- PuppetPatch2(X, Y, size, ...Draws a puppet at the designated position within axH.
- RemoveTile(row, col, game)
- ResizeFcn(fig, ~, game)Executes on resizing the main figure window.
- ScrollFcn(~, event, game)The scroll-wheel is used to zoom in/out on the field.
- Undo(~,~, game)
- about(~,~, version)
- carcassonne()CARCASSONNE v3.11
- checkboxCallback(src,~,ga...
- cityInfo(row, col, side, ...This function returns a struct of information about the indicated
- countCitiesRoads(game)
- drawGrid(ax, n)
- enlarge(game, bgc, LRside...Enlarges the field from nxn to (n+1)x(n+1). LRSide and UDSide determine
- fieldInfo(row, col, side,...Returns a struct:
- free(~,~)Free Mode:
- getPoints(row, col, type,...This function calculates adds the points that should be added after
- main(~,~)THE PLAYERS
- roadInfo(row, col, side, ...This function returns a struct of information about the indicated
- rotate(s, k)Rotates the specification for a tile. This can either be an array of 4
- settings(~, ~, enable)DEFAULT VALUES
- setup()FIGURE WINDOW
- shuffle(seq, N)
Shuffles a sequence by interchanging two randomly chosen elements N
- statistics(~, ~, G, game)This function opens a window containing the current game-statistics. It
- toMainMenu(src,~)
- updateScorePanel(player, ...PUPPETS
- writeToLog(game, players,...
- defaultsettings.m
- figstate.m
- tilemats.m
-
View all files
Carcassonne
by Joren Heit
21 Jan 2012
(Updated 20 Apr 2012)
Emulation of the map-building game Carcassonne, including 4 expansion packs
|
Watch this File
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 22 Feb 2012 |
minor bugfixes, updated description |
| 08 Mar 2012 |
Better resizing-behaviour of the scoreboard, clean exits (replay option), added undo-button |
| 11 Mar 2012 |
updated randstream for future releases, easy modification of the point-values (see description), minor bugfixes + modifications |
| 23 Mar 2012 |
Major update! Added expansion-pack (which required major changes in the algorithms) and Free-Mode. |
| 24 Mar 2012 |
Dropbox produced a conflicted copy of 'main.m'. The old (incompatible) 'main.m' is now deleted. You can do this yourself: rename the conflicted copy. |
| 02 Apr 2012 |
Added "The River" expansion, Game-Settings menu, removes maxfig-dependence, new layout |
| 20 Apr 2012 |
added King&Scout, Traders&Builders, new looks, various bugfixes |
|
Contact us