diff --git a/masterchess/chess.py b/masterchess/chess.py
index 069d27e..f2bd2ad 100644
--- a/masterchess/chess.py
+++ b/masterchess/chess.py
@@ -280,13 +280,29 @@ class King(Pieces):
 
         return self.NAME
 
-    def threatening_zone(self):
+    def threatening_zone(self, max_size):
         """
         Get the current position of the piece and produce a list of threathening
         places in the board.
+
+        Arguments:
+        max_size -- integer that defines de boundary limits of the board.
         """
 
-        pass
+        zone = []
+
+        x, y = self.position
+        zone.append((x-1, y+1))
+        zone.append((x, y+1))
+        zone.append((x+1, y+1))
+        zone.append((x-1, y))
+        zone.append((x+1, y))
+        zone.append((x-1, y-1))
+        zone.append((x, y-1))
+        zone.append((x+1, y-1))
+
+        rg = range(max_size)
+        return [(x, y) for x, y in zone if x in rg and y in rg]
 
 
 class Pawn(Pieces):

Implement threatening zone for kings
diff --git a/tests/tests.py b/tests/tests.py
index 2702e57..71bb655 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -375,6 +375,134 @@ class TestsChessMasterPiece(unittest.TestCase):
             sorted(queen.threatening_zone(8)), sorted(expected)
         )
 
+    def test_king_threatening_zone(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((3, 4))
+
+        expected = [
+            (2, 5),
+            (3, 5),
+            (4, 5),
+            (2, 4),
+            (4, 4),
+            (2, 3),
+            (3, 3),
+            (4, 3)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
+    def test_king_threatening_zone_boundary_bottom(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((3, 0))
+
+        expected = [
+            (2, 1),
+            (3, 1),
+            (4, 1),
+            (2, 0),
+            (4, 0)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
+    def test_king_threatening_zone_boundary_top(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((3, 7))
+
+        expected = [
+            (2, 7),
+            (4, 7),
+            (2, 6),
+            (3, 6),
+            (4, 6)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
+    def test_king_threatening_zone_boundary_top_left(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((0, 7))
+
+        expected = [
+            (1, 7),
+            (0, 6),
+            (1, 6)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
+    def test_king_threatening_zone_boundary_top_right(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((7, 7))
+
+        expected = [
+            (6, 7),
+            (6, 6),
+            (7, 6)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
+    def test_king_threatening_zone_boundary_bottom_left(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((0, 0))
+
+        expected = [
+            (0, 1),
+            (1, 1),
+            (1, 0)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
+    def test_king_threatening_zone_boundary_bottom_right(self):
+        """
+        Testing gather the king allowed moves
+        """
+
+        king = chess.King((7, 0))
+
+        expected = [
+            (6, 0),
+            (6, 1),
+            (7, 1)
+        ]
+
+        self.assertEqual(
+            sorted(king.threatening_zone(8)), sorted(expected)
+        )
+
 class TestsChessMasterBoard(unittest.TestCase):
 
     def test_put_1_piece(self):

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y gcc
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/fabiobatalha/chess_master.git@9843f1ab8accc5342d4f3712260fc4fe74640f09#egg=chessmaster
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
tomli==2.2.1

name: chess_master
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.8.0
      - exceptiongroup==1.2.2
      - iniconfig==2.1.0
      - nose==1.3.7
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - tomli==2.2.1
prefix: /opt/conda/envs/chess_master

tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone_boundary_bottom tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone_boundary_bottom_left tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone_boundary_bottom_right tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone_boundary_top tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone_boundary_top_left tests/tests.py::TestsChessMasterPiece::test_king_threatening_zone_boundary_top_right
tests/tests.py::TestsChessMasterPiece::test_bishop_threatening_zone tests/tests.py::TestsChessMasterPiece::test_e_positions tests/tests.py::TestsChessMasterPiece::test_instanciation_piece tests/tests.py::TestsChessMasterPiece::test_instanciation_preset_position tests/tests.py::TestsChessMasterPiece::test_n_positions tests/tests.py::TestsChessMasterPiece::test_ne_positions tests/tests.py::TestsChessMasterPiece::test_nw_positions tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_x_boundary_left tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_x_boundary_right tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_zone tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_zone_y_boundary tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_zone_y_boundary_last_move tests/tests.py::TestsChessMasterPiece::test_queen_threatening_zone tests/tests.py::TestsChessMasterPiece::test_rook_threatening_zone tests/tests.py::TestsChessMasterPiece::test_s_positions tests/tests.py::TestsChessMasterPiece::test_se_positions tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_1 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_2 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_3 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_4 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_5 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_6 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_7 tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_8 tests/tests.py::TestsChessMasterPiece::test_set_position tests/tests.py::TestsChessMasterPiece::test_sw_positions tests/tests.py::TestsChessMasterPiece::test_w_positions tests/tests.py::TestsChessMasterBoard::test_instanciating_board_size_3 tests/tests.py::TestsChessMasterBoard::test_instanciating_board_size_7 tests/tests.py::TestsChessMasterBoard::test_instanciating_board_wrong_size tests/tests.py::TestsChessMasterBoard::test_put_1_piece tests/tests.py::TestsChessMasterBoard::test_put_2_pieces tests/tests.py::TestsChessMasterBoard::test_put_piece_in_occupied_square
masterchess/chess.py
masterchess/chess.py