오별랩 OByeolLab

전통놀이

사랑방 오목

Five-in-a-row (omok / renju).자유룰·렌주룰 오목을 컴퓨터나 친구와 둬요.

게임 화면은 한국어예요.

게임 시작

새 창에서 열기 다른 게임

사랑방 오목

가로, 세로, 대각선 가운데 한 줄로 다섯 알을 먼저 잇는 오목 게임이에요. 등잔불이 켜진 사랑방에서 바둑돌을 놓는 분위기로, 컴퓨터와 두거나 한 기기에서 친구와 둘이서 둘 수 있어요.

조작법

  • 시작 화면에서 상대(컴퓨터와 또는 둘이서), 내 돌(흑 또는 백), 실력(쉬움, 보통, 어려움), 규칙(자유룰 또는 렌주룰)을 골라요.
  • 놓고 싶은 자리를 클릭해서 돌을 놓아요. 터치 화면에서는 자리를 한 번 누르면 미리 보이고, 같은 곳을 한 번 더 누르면 놓여요.
  • 키보드는 방향키로 자리를 고르고 Enter나 스페이스로 돌을 놓아요.
  • 무르기, 수 번호, 처음부터 버튼이 있어요. 컴퓨터와 둘 때 무르기는 한 판에 3번까지예요.

규칙과 점수

  • 판은 15줄이고 흑이 먼저 둬요. 한 줄로 다섯 알을 먼저 이으면 이겨요.
  • 자유룰은 금수가 없어서 흑과 백 모두 다섯 알 이상 이으면 이겨요.
  • 렌주룰에서 흑은 삼삼, 사사, 장목(여섯 알 이상) 자리에 둘 수 없고, 그런 자리에는 X 표시가 떠요. 흑은 정확히 다섯 알이어야 이기고, 백은 여섯 알 이상도 이겨요.
  • 판이 가득 찼는데 아무도 다섯 알을 잇지 못하면 비겨요.
  • 컴퓨터와 둔 승패 기록이 시작 화면과 결과 화면에 나와요.

팁: 처음에는 자유룰과 쉬움으로 시작하고, 익숙해지면 렌주룰과 어려움에 도전해 보세요.

오목은 어디서 왔을까

표준국어대사전은 오목을 '바둑 놀이의 하나'로 풀이해요. 흰 돌과 검은 돌을 번갈아 놓다가 한 줄로 다섯 개를 먼저 잇는 사람이 이겨요. 한국민족문화대백과사전은 이름을 '말을 다섯 개 나란히 놓는다'는 뜻으로 풀고, 중국에서는 격오(格五), 일본에서는 연주(連珠)라고 부른다고 적어요.

오목은 한국에서만 하는 놀이가 아니에요. 국제렌주연맹(RIF)의 역사 자료는 일본에서 오래전부터 바둑판 위에서 이 놀이를 두었고 '고모쿠' 같은 이름으로 불렀다고 설명해요. 먼저 두는 흑이 크게 유리해서 일본에서 흑에게만 제한을 두는 규칙이 생겼고, RIF 자료로는 1903년에 받아들여졌어요. 15줄 판은 1931년에 제안됐어요. 이렇게 다듬은 규칙이 렌주예요.

한국에서는 바둑판 대신 장기판과 장기알로 두거나, 종이에 칸을 그리고 연필로 표시하며 두기도 했어요. 2002년에는 한국오목협회가 세워졌어요.

자유룰과 렌주룰

자유룰은 제한 없이 다섯 알 이상을 먼저 이으면 이기는 규칙이에요. 렌주에서는 흑이 한 수로 삼을 둘 이상(삼삼), 사를 둘 이상(사사) 만들거나 여섯 알 이상(장목)을 잇는 자리에 둘 수 없어요. 백은 제한이 없고 여섯 알 이상으로도 이겨요. RIF 입문 자료는 15줄 판에서 흑의 첫 수를 한가운데에 둔다고 설명해요.

여기서 사는 한 알만 더 놓으면 다섯이 되는 줄이고, 삼은 한 알만 더 놓으면 열린 사(다섯을 만들 자리가 양 끝에 둘 다 있는 사)가 되는 줄이에요.

  • 이 게임의 렌주룰은 금수만 넣었어요. 사람이 흑일 때 첫 수를 가운데에 두지 않아도 돼요.
  • 컴퓨터가 흑이면 첫 수를 가운데에 둬요. 쉬움에서는 절반쯤 가운데 바로 옆에 둬요.
  • 삼삼은 '진짜 삼'만 세요. 그 삼을 열린 사로 만드는 자리가 다시 금수라면 삼으로 치지 않아요.

만든 이야기

컴퓨터는 빈 자리마다 네 방향의 돌 모양(둘, 셋, 열린 셋, 넷, 열린 넷 등)에 점수를 매기고, 내 공격 점수와 상대를 막는 점수를 더해 후보를 골라요.

쉬움은 상대가 다섯을 만들 자리를 80% 확률로만 막고, 자기 열린 사도 70% 확률로만 살려요. 나머지 수는 수비 비중을 무작위로 정하고, 30% 확률로 상위 다섯 자리 가운데 아무 곳에나 둬요.

보통은 이기는 수와 꼭 막아야 하는 수를 놓치지 않아요. 사를 잇달아 두어 이기는 수순(VCF)을 0.06초 동안 네 단계까지 찾고, 후보 12~14곳을 두 수 앞까지 따져요. 25% 확률로 점수가 비슷한 상위 세 곳 가운데 하나를 골라요.

어려움은 VCF를 열두 단계까지 찾고, 상대에게 VCF가 있으면 그것을 끊는 자리만 남겨요. 그다음 0.33초 안에서 최대 10수 앞까지 깊이를 늘려 가며 계산해요.

Five-in-a-row (omok / renju)

Omok (five-in-a-row) is a board game where you try to line up five stones in a row, horizontally, vertically or diagonally. The setting is a lamp-lit sarangbang (traditional study room). You can play against the computer or take turns with a friend on one device.

How to play

  • On the start screen, choose your opponent (computer or two players), your stone color, the difficulty (easy, normal, hard) and the rule set (free or renju).
  • Click a spot to place a stone. On a touch screen, tap once to preview the spot and tap the same spot again to place it.
  • On a keyboard, move with the arrow keys and place a stone with Enter or Space.
  • There are buttons for undo, move numbers and restart. Against the computer you can undo up to 3 times per game.

Rules and scoring

  • The board has 15 lines and black moves first. The first player to make an unbroken row of five wins.
  • Free rules have no forbidden moves, so both black and white win with five or more in a row.
  • Under renju (stricter omok rules), black may not play a double-three, a double-four or an overline of six or more, and those spots are marked with an X. Black must make exactly five to win, while white wins with five or more.
  • If the board fills up and nobody has five in a row, the game is a draw.
  • Your win and loss record against the computer appears on the start and result screens.

Tip: Start with free rules on easy, then move on to renju and hard once you are comfortable.

Where omok comes from

The Standard Korean Language Dictionary calls omok "a kind of baduk game": two players take turns placing white and black stones, and the first to place five in a row wins. The Encyclopedia of Korean Culture explains the name as "placing five pieces side by side" and says the game is called gewu (格五) in China and renju (連珠) in Japan.

Omok is not only a Korean game. The history notes of the Renju International Federation (RIF) say it was played in Japan for a long time on a Go board, under names such as gomoku. Black, who moves first, had a big advantage, so rules restricting Black alone appeared in Japan; RIF dates their adoption to 1903. The 15-line board was proposed in 1931. The rules shaped this way are called renju.

In Korea, people also played on a janggi board with janggi pieces, or drew a grid on paper and marked moves with a pencil. The Korea Omok Association was founded in 2002.

Free rules and renju

Under free rules, the first to make five or more in a row wins, with no restrictions. In renju, Black may not play a move that makes two or more threes (double-three) or two or more fours (double-four) at once, or a line of six or more (overline). White has no restrictions and also wins with six or more. The RIF beginners' guide says Black's first move goes in the center of the 15-line board.

Here a four is a line that becomes five with one more stone, and a three is a line that becomes an open four (a four with a winning point at both ends) with one more stone.

  • Our renju mode adds the forbidden moves only. When you play Black, your first move does not have to be in the center.
  • When the computer plays Black, it opens in the center. On easy, about half the time it plays right next to the center instead.
  • Only real threes count toward a double-three: if the point that would turn a three into an open four is itself forbidden, that three is not counted.

Behind the game

For every empty point, the computer scores the shapes in four directions (twos, threes, open threes, fours, open fours and so on) and adds its attacking value to the value of blocking the opponent.

Easy blocks the opponent's five only 80% of the time and takes its own winning open four only 70% of the time. Otherwise it weighs defense at random, and 30% of the time it picks any of its top five points.

Normal never misses a winning move or a forced block. It spends 0.06 seconds looking for a win by a chain of fours (VCF) up to four steps, then checks 12 to 14 candidates two moves deep. A quarter of the time it picks one of the top three when their scores are close.

Hard searches for a VCF up to twelve steps, and if the opponent has one, keeps only the moves that stop it. Then it deepens its search up to 10 moves ahead within 0.33 seconds.

출처 · Sources

확인 · Checked: 2026-11-04