Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int TranslateCoordinate(this string, int)

Declaration

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

Summary

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

Parameters

this 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.