Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: int TranslateCoordinate(string, int)

Declaration

public static int TranslateCoordinate(
    string str,
    int gridWidth = 9
)

Summary

Converts a convenient coordinate notation into a puzzle-grid index.

Parameters

stringstr A string such as "E2". The letter is assumed to be a column (starting from A) while the digit is a row (starting from 1).
intgridWidth The width of the puzzle grid. For a standard Sudoku, this is 9.

Returns

A cell index.