2024-09-18 17:04:31 +02:00
|
|
|
########################################
|
|
|
|
## Programming project code
|
|
|
|
## UniBw M, 2022, 2023, 2024
|
|
|
|
## www.unibw.de/inf2
|
|
|
|
## (c) Mark Minas (mark.minas@unibw.de)
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Battleship server configuration file
|
|
|
|
#
|
|
|
|
# This file defines the configuration settings for the Battleship server.
|
|
|
|
#
|
|
|
|
# The port number on which the server will listen for incoming connections.
|
2024-11-20 03:36:54 +01:00
|
|
|
port=42069
|
2024-09-18 17:04:31 +02:00
|
|
|
#
|
|
|
|
# The dimensions of the game map.
|
|
|
|
# 'map.width' defines the number of columns, and 'map.height' defines the number of rows.
|
|
|
|
map.width=10
|
|
|
|
map.height=10
|
|
|
|
#
|
|
|
|
# The number of ships of each length available in the game.
|
|
|
|
# The value is a comma-separated list where each element corresponds to the number of ships
|
|
|
|
# with a specific length. For example:
|
|
|
|
# ship.nums=4, 3, 2, 1
|
|
|
|
# This configuration means:
|
|
|
|
# - 4 ships of length 1
|
|
|
|
# - 3 ships of length 2
|
|
|
|
# - 2 ships of length 3
|
|
|
|
# - 1 ship of length 4
|
|
|
|
ship.nums=4, 3, 2, 1
|