online multiplayer chess game (note server currently down)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extends Piece
class_name King


func get_moves():
	var moves = []
	for i in all_dirs():
		var spot = pos_around(i)
		if is_on_board(spot):
			if check_spots_check and checkcheck(spot):
				continue
			moves.append(spot)
	return moves


func _ready():
	._ready()
	shortname = "k" + team