official-stockfish/Stockfish has 18,438 source lines of code out of 28,913 total lines across 85 files, counted from the master ref at commit 49ea5ded3831 by the OctoCounts tokei engine on 2026-09-30. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-09-30 (commit 49ea5ded3831), official-stockfish/Stockfish contains 28,913 total lines: 18,438 code, 5,267 comments, 5,208 blank, across 85 files in 7 languages (top: C++ 48.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving official-stockfish/Stockfish to commit 49ea5ded3831, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a medium-sized codebase by counted code lines. Code represents 63.8% of all lines, comments represent 18.2%, and the repository averages 217 code lines per file. C++ accounts for 48.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 30 | 13398 | 8869 | 1938 | 2591 |
| C Header | 42 | 11735 | 7717 | 1899 | 2119 |
| Makefile | 1 | 1551 | 1194 | 162 | 195 |
| Shell | 7 | 835 | 629 | 100 | 106 |
| AWK | 1 | 83 | 29 | 43 | 11 |
| Markdown | 2 | 256 | 0 | 192 | 64 |
| Plain Text | 2 | 1055 | 0 | 933 | 122 |
Top language (C++ 48.1%). Generated at .
official-stockfish/Stockfish has 28,913 total lines, including 18,438 code lines, 5,267 comment lines, and 5,208 blank lines.
OctoCounts resolved the public GitHub repository to commit 49ea5ded3831, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit 49ea5ded3831 on 2026-09-30T20:13:58.142877138+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for official-stockfish/Stockfish on this page — 18,438 code lines across 7 languages, counted by tokei.