Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #483 // Image distinguisher (trivial solution 1 - always returns true)

Lua code - Image distinction (learner)

1  
-- Job: Distinguish two classes of images
2  
-- Two images are supplied at once, one of each class.
3  
-- Task is to find out if the two images are swapped or not.
4  
--
5  
-- input variables: img1, img2, solution [to last pair]
6  
-- output: a function returning true or false (swapped or no)
7  
8  
return function()
9  
  return true
10  
end

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #483
Snippet name: Image distinguisher (trivial solution 1 - always returns true)
Eternal ID of this version: #483/1
Text MD5: 2ca57ffaa8757241bae00964bd72fa53
Author: stefan
Category:
Type: Lua code - Image distinction (learner)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-03 18:27:21
Source code size: 324 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 636 / 272
Referenced in: [show references]