Question: What type of government did North Korea have during the conflict when UN troops approached the Yalu River?

Knowledge 1: Yalu River
The Korean side of the river was heavily industrialized during the period of Japanese rule (1910 -- 1945), and by 1945 almost 20% of Imperial Japan's total industrial output originated in Korea. During the Korean War, the movement of United Nations troops approaching the river precipitated massive Chinese intervention from around Dandong. In the course of the conflict every bridge across the river except one was destroyed. The one remaining bridge was the Sino -- Korean Friendship Bridge connecting Sinuiju, North Korea to Dandong, China. During the war the valley surrounding the western end of the river also became the focal point of a series of dogfights for air superiority over North Korea, earning the nickname ``MiG Alley ''in reference to the MiG - 15 fighters flown by the combined North Korean, Chinese and Soviet forces. [SEP] Knowledge 2: Kim Jong-un
Officially, Kim Jong-un is part of a triumvirate heading the executive branch of the North Korean government along with Premier Kim Jae-ryong (no relation) and parliament president Choe Ryong-hae. Each nominally holds powers equivalent to a third of a president's powers in most presidential systems. Kim Jong-un commands the armed forces, Kim Jae-ryong heads the government and handles domestic affairs, and Choe Ryong-hae handles foreign relations. Nevertheless, it is generally understood that Kim Jong-un, like his father and grandfather before him, exercises absolute control over the government and the country.  Indeed, a constitutional amendment enacted by his father explicitly named the NDC (first) chairman as "the supreme leader of the Democratic People's Republic of North Korea".On 30 November 2012, Kim met with Li Jianguo, who "briefed Kim on the 18th National Congress of the Communist Party of China", according to the state's official news agency, the Korean Central News Agency. A letter from Xi Jinping, General Secretary of the Communist Party of China, was hand-delivered during the discussion.On 9 March 2014, Kim Jong-un was elected to a seat in the Supreme People's Assembly, the country's unicameral legislature. He ran unopposed, but voters had the choice of voting yes or no. There was a record turnout of voters and, according to government officials, all voted "yes" in his home district of Mount Paekdu. The Supreme People's Assembly subsequently elected him first chairman of the National Defense Commission.
Knowledge 1: Yalu River
The Korean side of the river was heavily industrialized during the period of Japanese rule (1910 -- 1945), and by 1945 almost 20% of Imperial Japan's total industrial output originated in Korea. During the Korean War, the movement of United Nations troops approaching the river precipitated massive Chinese intervention from around Dandong. In the course of the conflict every bridge across the river except one was destroyed. The one remaining bridge was the Sino -- Korean Friendship Bridge connecting Sinuiju, North Korea to Dandong, China. During the war the valley surrounding the western end of the river also became the focal point of a series of dogfights for air superiority over North Korea, earning the nickname ``MiG Alley ''in reference to the MiG - 15 fighters flown by the combined North Korean, Chinese and Soviet forces. [SEP] Knowledge 2: North Korea
North Korea (Korean: ; MR: "Chosŏn" or literally ; MR: "Pukchosŏn"), officially the Democratic People's Republic of Korea (DPRK or DPR Korea; Korean: , "Chosŏn Minjujuŭi Inmin Konghwaguk"), is a country in East Asia constituting the northern part of the Korean Peninsula, with Pyongyang the capital and the largest city in the country. To the north and northwest, the country is bordered by China and by Russia along the Amnok (known as the Yalu in Chinese) and Tumen rivers and to the south it is bordered by South Korea, with the heavily fortified Korean Demilitarized Zone (DMZ) separating the two. Nevertheless, North Korea, like its southern counterpart, claims to be the legitimate government of the entire peninsula and adjacent islands.
Knowledge 1: Korean War
UN forces retreated to Suwon in the west, Wonju in the center, and the territory north of Samcheok in the east, where the battlefront stabilized and held. The PVA had outrun its logistics capability and thus were unable to press on beyond Seoul as food, ammunition, and matériel were carried nightly, on foot and bicycle, from the border at the Yalu River to the three battle lines. In late January, upon finding that the PVA had abandoned their battle lines, General Ridgway ordered a reconnaissance-in-force, which became Operation Roundup (5 February 1951). A full-scale X Corps advance proceeded, which fully exploited the UN Command's air superiority, concluding with the UN reaching the Han River and recapturing Wonju. [SEP] Knowledge 2: North Korea
North Korea (Korean: ; MR: "Chosŏn" or literally ; MR: "Pukchosŏn"), officially the Democratic People's Republic of Korea (DPRK or DPR Korea; Korean: , "Chosŏn Minjujuŭi Inmin Konghwaguk"), is a country in East Asia constituting the northern part of the Korean Peninsula, with Pyongyang the capital and the largest city in the country. To the north and northwest, the country is bordered by China and by Russia along the Amnok (known as the Yalu in Chinese) and Tumen rivers and to the south it is bordered by South Korea, with the heavily fortified Korean Demilitarized Zone (DMZ) separating the two. Nevertheless, North Korea, like its southern counterpart, claims to be the legitimate government of the entire peninsula and adjacent islands.

Answer: a communist government