Preparing detailed simplicial homology computation
I'm outlining a standard Δ-complex triangulation of the torus using a square subdivided by a diagonal, defining chain groups with one vertex, three edges, and two 2-simplices, precisely describing the boundary operators and computing the homology groups H0 ≅ Z, H1 ≅ Z², and H2 ≅ Z with explicit kernel and image calculations.
A convenient way to put a simplicial structure on the torus is to view it as the quotient of a square with opposite edges identified. If you add a diagonal to the square, you get two 2‑simplices; after taking the quotient all four vertices are identified to a single vertex, the two horizontal edges become a single 1‑simplex (a), the two vertical edges become a single 1‑simplex (b), and the diagonal is a third 1‑simplex (c). One way to label the square is
[
v_3 \quad\stackrel{a}{\longrightarrow}\quad v_2\
\uparrow^b \qquad\qquad\qquad\downarrow^b\
v_0 \quad\stackrel{a}{\longrightarrow}\quad v_1
]
with the diagonal ([v_0,v_2]) giving the edge (c). The two 2‑simplices are (\sigma_1=[v_0,v_1,v_2]) and (\sigma_2=[v_0,v_2,v_3]) (if you prefer the orientation ([v_0,v_3,v_2]) for (\sigma_2), the formulas below reflect that choice).
With (\mathbb{Z})–coefficients the simplicial chain groups are
[
C_2\cong \mathbb{Z}^2\quad\text{generated by }\sigma_1,\sigma_2,\qquad
C_1\cong \mathbb{Z}^3\quad\text{generated by }a,b,c,\qquad
C_0\cong \mathbb{Z}\quad\text{generated by the single vertex}.
]
The boundary of an oriented 1–simplex is the difference of its endpoints; because all vertices coincide in the quotient, (\partial_1(a)=\partial_1(b)=\partial_1(c)=0), so (\partial_1\colon C_1\to C_0) is the zero map. The boundary of an oriented 2–simplex ([v_i,v_j,v_k]) is ([v_j,v_k]-[v_i,v_k]+[v_i,v_j]). Expressed in terms of (a,b,c) you obtain
[
\partial_2(\sigma_1)=\partial_2([v_0,v_1,v_2]) = [v_1,v_2]-[v_0,v_2]+[v_0,v_1] = b - c + a,
]
[
\partial_2(\sigma_2)=\partial_2([v_0,v_2,v_3]) = [v_2,v_3]-[v_0,v_3]+[v_0,v_2] = a - b + c.
]
If you orient (\sigma_2) as ([v_0,v_3,v_2]) instead, the boundary is again (a+b-c). In either case, in the quotient the two boundaries agree, so with respect to the ordered bases ({\sigma_1,\sigma_2}) of (C_2) and ({a,b,c}) of (C_1) the matrix of (\partial_2) is
[
\begin{pmatrix}
1 & 1\[0.3ex]
1 & 1\[0.3ex]
-1 & -1
\end{pmatrix},
]
i.e. (\partial_2(\sigma_1)=\partial_2(\sigma_2)=a+b-c).
The homology groups are computed from the chain complex
[
0\longrightarrow C_2 \xrightarrow{\ \partial_2\ } C_1 \xrightarrow{\ \partial_1=0\ } C_0 \longrightarrow 0.
]
Since (C_3=0), (H_2 = \ker\partial_2). The image of (\partial_2) is the subgroup of (\mathbb{Z}^3) generated by ((1,1,-1)), so (\partial_2) has rank one and (\ker\partial_2) is a free abelian group of rank (2-1=1), isomorphic to (\mathbb{Z}). Thus (H_2(T^2)\cong\mathbb{Z}), as expected for an orientable surface.
For (H_1), (\ker\partial_1=C_1\cong\mathbb{Z}^3), so
[
H_1 = \ker\partial_1/\operatorname{im}\partial_2 \cong \mathbb{Z}^3/\langle(1,1,-1)\rangle \cong \mathbb{Z}^2.
]
One can take the classes of (a) and (b) as a basis of (H_1).
Finally, (\partial_0\colon C_0\to 0) is zero, so (H_0=\ker\partial_0/\operatorname{im}\partial_1=C_0/\operatorname{im}(\partial_1)\cong \mathbb{Z}), reflecting the path–connectedness of the torus.
Summarizing,
[
H_0(T^2)\cong \mathbb{Z},\qquad H_1(T^2)\cong \mathbb{Z}\oplus\mathbb{Z},\qquad H_2(T^2)\cong \mathbb{Z},
]
with all higher simplicial homology groups trivial.