⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 areacellposition .java

📁 用JAVA编写的数独游戏源代码,帮助你快速得到游戏的答案
💻 JAVA
字号:


class AreaCellPosition {
	 int i ;
	 int j ;
	 
	 AreaCellPosition(int small_row_index , int small_column_index ) {
	 	this.i = small_row_index ;
	 	this.j = small_column_index ;
	 }

	 AreaCellPosition(int small_index) {
	 	this.i = small_index/3 ;
	 	this.j = small_index%3 ;
	 }

	 int getIndex() {
	 	return i*3+j ;
	 }
	 
 	 static AreaCellPosition getAreaCellPosition( int datasRow_index , int datasColumns_index ) {
	 	return new AreaCellPosition( datasRow_index%3 , datasColumns_index%3 ) ;
	 }

	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -