Skip to content

sabzparto/AP-FinalProject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

163 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Programming Final Project

catan-logo

a simple, multiplayer Settlers of Catan made by QtCreator.

Contributors

  • Melika Fotoohi
  • Parto Sabzevari
  • Golnoush Nematbakhsh

Rulebooks

  • here is a Persian rulebook of catan that might be helpful for you : AP_project_00.pdf
  • Also for more information about rules and conditions you can read this file : catan rulebook.pdf

Different parts of Game

Login

login

Players can choose a name and usename and enter to the game.


Board game

map

Resource tiles, buildings, dices, turn of players and their victory points are shown in this part.


Player's window

player

Every player has such window, you can find resource cards, development cards, player username and photo, trade and turn button and buildings here.


Trade window

trade

In this part players choose cards and players who they want to change card with, and send a trade request to them.


Request window

request

In this window you can see the sender and reciever of request and cards they want to trade.


Winners part

winner

At the end of the game, the first player who got 10 victory points is the winner!


Description

Player count, game length and overview:

Catan is a board game for two to four players in which you compete to gather resources and build the biggest settlements on the fictional island of Catan. It takes approximately one hour to play.

Setup

The board in Catan is modular, meaning it can be put together in a number of different variations. The more you play, the more creative you can get with how you put it together.

For your first game of Catan, however, there is a recommended way to set up the board. Here are the basic steps:

  1. Assemble the frame by clipping together the blue edges of the board.
  2. Arrange the land hex tiles in the beginner formation given in the rulebook, or shuffle them facedown and place them randomly for a variable setup.
  3. Place the numbered circle makers in either the beginner setup given or in alphabetical order, starting at a corner and working counter-clockwise toward the middle of the board. The robber pawn starts in the desert.

image

You can play Catan with the recommended beginner layout or a variable setup for more experienced players


Choose a player colour. Take the five settlements, four cities and 15 roads of that colour and place them in front of you.

Place two settlements and two roads on the board. If using the recommended beginner setup, follow the layout in the rulebook. The experienced player rules instead see each player take it in turns to place a settlement and one adjacent road, with the order of placing reversed (so the last player goes first) to place a second settlement and adjacent road.

Each player receives a building cost card - this will remind you what resources you’ll need to build further settlements, roads and cities, as well as buying development cards.

The Longest Road and Largest Army cards, as well as the two dice, should be placed alongside the game board.

Separate the resources into piles of their type: sheep, wood, brick, ore and wheat.

For the recommended beginner setup, you take the resources of the land surrounding the settlement marked by the white star in the rulebook: Yellow receives a sheep, a wood and a wheat. Red gets a wheat, a wood and a sheep. Blue gets a brick, a sheep and an ore. White gets an ore, a wood and a sheep.

When using the experienced player setup, you instead receive resources from each of the tiles next to your second settlement.

image

Resources are gathered by having settlements next to the numbered hexes rolled on dice


Gameplay rules

In Catan, your turn is split into three phases:

  • Resource production
  • Trading
  • Building
  1. Resource production Before you do anything else on your turn, you must roll the two dice. The result applies to everyone and usually means you get to take a resource from the resource stacks depending on the number you’ve rolled and where your settlements are based. For example, Red rolls a 9, which means they receive a sheep this turn as their settlement sits on the corner of a hex with a 9 marker that produces sheep. White is on the other side of that same hex and will also receive a sheep. There is another 9 at the top of the board, too; Yellow sits on that hex and receives a wheat.

Every player needs to make sure they keep track of their own settlements and whether or not they receive a resource on any given roll.

Catan is a game of probability to a certain extent, as the resources that come up will be determined by the dice that get rolled. 7 is the most likely number to be rolled with two dice and is treated slightly differently...

image

You can trade resources directly with other players or by swapping them using the maritime trading rules.


How does the robber work in Catan?

If you roll a 7 on your turn in Catan, you activate the robber.

Any player that has more than seven resource cards in their hand must return half of them (rounded down) to the resource stacks. That includes the person who activated the robber.

You now get to move the robber onto one of the numbers on the board, covering up that number - stopping players from gaining resources from adjacent settlements if that number is rolled - until the robber is moved again.

As they are a robber, you also get to steal a resource at random from a player with a settlement next to the number you cover. If the robber affects more than one player, choose one to take a resource from.

  1. Trade There are two types of trading in Catan: domestic and maritime.

Domestic trading is just a fancy way of saying you can trade with your fellow players. You can announce what you’re after and what you’d be willing to trade for it. Your fellow players can make counter offers and proposals to you (but not to each other!)

Maritime trading doesn’t involve the other players and can be incredibly useful when your opponents are being particularly stubborn about trading.

Maritime trading allows you to trade four of one good for one of another. You can perform this action this no matter what, but if you have a settlement or city on a harbour, you get a rebate of some kind based on the token - such as being able to trade at 3:1 or sometimes even 2:1 for a specific resource.

image

You'll need to upgrade your settlements to cities to get enough points to win Catan


  1. Building The last part of each player’s turn is the building phase.

You can build any number of things on your turn as long as you have the resources available and the building materials in your pool.

  • Roads

Building roads costs one brick and one wood. Roads are placed on the edges of hexes and will allow you to build settlements further afield, giving you an opportunity to gain more resources.

The first player to build a road at least five sections long (in a single stretch - not including forks) receives the Longest Road card, which is worth two victory points at the end of the game.

If another player exceeds the length of that person’s road, they get to take that card from them - so the Longest Road card is never entirely safe in any one player’s possession.

image

The robber pawn moves whenever a play rolls a 7 or plays a knight card, and blocks other players from collecting resources


  • Settlements

Building settlements requires a brick, a wood, a sheep and a wheat. Getting settlements on the board quickly can be quite an important strategy in the game, as each settlement is worth one victory point. You need 10 victory points to win the game.

You can only ever place a settlement somewhere that is connected by your roads and you need to be at least two spaces away from another settlement, including your own. That means no settlement can be adjacent to another settlement.

As well as giving you a precious victory point, each settlement rewards you with resources whenever one of the numbers next to it is rolled.

  • Cities

Building a city requires three ore and two wheat, plus an existing settlement. A city in Catan is like a hotel in Monopoly; it’s an upgrade.

You can only build a city if you have a settlement on the board that can be replaced with the new city. Cities will earn you double the resources and are worth two victory points each.

image

Settlements and cities must be built along roads and can't be next to each other.


  • Development cards

Buying development cards is also part of the building phase and costs one sheep, one ore and one wheat. It’s a bit of a lucky dip as you are buying blindly from a stack of cards but they are all beneficial to you.

Development cards are kept hidden from your opponents until a certain point depending on the individual card. It’s important to note that you cannot play a development card on the same turn that you have bought it.

All instructions are written on the cards. There are three types of development cards: knights, progress cards and victory points cards.

Knights are similar to the Longest Road card in that the first player to play three knights in front of them will receive a two-point bonus for having the Largest Army. But, just like the Longest Road, this card can be stolen by another player if their army is larger than yours. Knights also activate the robber when played, in which case you behave as if you had just rolled a 7.

Progress cards vary and what they do is laid out very clearly on each card. They usually give you resources or allow you to build without spending resources. Once played, the card is removed from the game.

Victory point cards are the juiciest of the development cards, as they speed up your road to victory and remain hidden until you have enough victory points to win the game on your turn. Victory points cards are the only development cards that can be played on the same turn they are purchased.

Scoring and end of the game

The aim of Catan is simple: the first player to 10 victory points on their turn wins.

Make sure to keep count of your victory points (and your opponents’!) throughout the game by keeping track of buildings and any Longest Road/Largest Army bonuses.


About

SETTLERS OF CATAN by QT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 98.5%
  • QMake 1.5%